server_config/install.sh

22 lines
426 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
for app in $APPS
do
echo "[server_config] > Installing: $app"
source "./$app/_install.sh" \
&& echo "[server_config] > Install done" \
|| echo "[server_config] > Install failed"
done