server_config/install.sh

25 lines
450 B
Bash

# Install requirements
echo "[server_config] > Installing required utilities"
source ./_requirements.sh
# Install services
APPS=$@
if [[ $# -eq 1 ]]; then
if [[ $1 == "--all" || $1 == "-a" ]]; then
APPS=$(ls -d */)
fi
fi
BASE=$(pwd)
for app in $APPS
do
cd $BASE
echo "[server_config] > Installing: $app"
source "./$app/_install.sh" \
&& echo "[server_config] > Install done" \
|| echo "[server_config] > Install failed"
done