¡Hyperling.com 2.0! #16

Merged
me merged 75 commits from dev into main 2025-10-14 14:54:55 -07:00
Showing only changes of commit 23c0090a47 - Show all commits

14
run.sh
View File

@@ -79,25 +79,29 @@ if [[ $LOGNAME != "root" ]]; then
fi
log "Check if any system dependencies need installed."
progs=""
if [[ ! `which php` ]]; then
echo "- Installing PHP"
$sudo apt-get install -y php-cli
progs="$progs php-cli"
fi
if [[ ! `which node` ]]; then
echo "- Installing Node"
$sudo apt-get install -y nodejs
progs="$progs nodejs"
fi
if [[ ! `which npm` ]]; then
echo "- Installing NPM"
$sudo apt-get install -y npm
progs="$progs npm"
fi
if [[ ! `which curl` ]]; then
echo "- Installing Curl"
$sudo apt-get install -y curl
progs="$progs curl"
fi
if [[ ! `which ps` ]]; then
echo "- Installing PS"
$sudo apt-get install -y procps
progs="$progs procps"
fi
if [[ -n "$progs" ]]; then
$sudo apt-get install -y $progs
fi
# Directories and allowed page types are executable, others are not.