feat: add global install and deploy scripts
This commit is contained in:
parent
5b26a1055a
commit
4240f764cb
14
deploy.sh
Normal file
14
deploy.sh
Normal 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
14
install.sh
Normal 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
|
Loading…
Reference in a new issue