forked from cohabit/server_config
20 lines
391 B
Bash
20 lines
391 B
Bash
# Install requirements
|
|
echo "[server_config] > Installing required utilities"
|
|
source ./_requirements.sh
|
|
|
|
# Install services
|
|
APPS=$@
|
|
|
|
if [[ $1 == "*" && $# -eq 1 ]]; then
|
|
APPS=$(ls -d */)
|
|
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
|