server_config/install.sh

20 lines
389 B
Bash
Raw Normal View History

# Install requirements
echo "[server_config] > Installing required utilities"
source ./_requirements.sh
# Install services
APPS=$@
if [[ $1 == "*" && $# -eq 1 ]]; then
APPS=$(ls -d */)
fi
2024-05-30 12:29:24 +02:00
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