feat: add global install and deploy scripts

This commit is contained in:
Julien Oculi 2024-05-29 13:42:18 +02:00
parent 5b26a1055a
commit 4240f764cb
2 changed files with 28 additions and 0 deletions

14
deploy.sh Normal file
View file

@ -0,0 +1,14 @@
APPS=$@
if [[ $1 == "*" && $# -eq 1 ]]; then
APPS=$(ls .)
fi
for app in "$APPS"
do
echo "[server_config] > Deploying: $app"
source "./$app/_deploy.sh" \
&& echo "[server_config] > Deploy done" \
|| echo "[server_config] > Deploy failed"
done

14
install.sh Normal file
View file

@ -0,0 +1,14 @@
APPS=$@
if [[ $1 == "*" && $# -eq 1 ]]; then
APPS=$(ls .)
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