From 4240f764cb146bf51b93d0f9728d29d50b2ea54b Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Wed, 29 May 2024 13:42:18 +0200 Subject: [PATCH] feat: add global install and deploy scripts --- deploy.sh | 14 ++++++++++++++ install.sh | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 deploy.sh create mode 100644 install.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..e23a78c --- /dev/null +++ b/deploy.sh @@ -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 diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..d1e8756 --- /dev/null +++ b/install.sh @@ -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