#!/bin/bash set -e echo "-- Welcome to FolderHarbor! --" echo "This script will install FolderHarbor Server onto this computer/server." if [ "$EUID" -ne 0 ]; then echo 'Error: Not running as root! Please invoke this script with "sudo".' exit 1 fi NODEVER="24.15.0" case "$(uname -m)" in x86_64) ARCH="x86_64" NODEARCH="x64" CLIARCH="amd64" ;; *) echo "Error: Unsupported CPU architecture $(uname -m)! Please try again on another computer/server, or make a GitHub Issue on https://github.com/aelithron/folderharbor/issues to request we support your architecture." exit 1 ;; esac case "$(uname -s)" in Linux*) ;; *) echo "Error: Unsupported operating system $(uname -s)! Please try again on a Linux computer/server, or make a GitHub Issue on https://github.com/aelithron/folderharbor/issues to request we support your OS." exit 1 ;; esac echo "Note that this is the full server! If you want to connect to an existing server, check out the Web Panel (https://fh.novatea.dev/web) and the CLI (https://fh.novatea.dev/cli)." read -p "Do you want to install FolderHarbor Server? (y/n): " -n 1