summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-07 11:35:47 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-07 11:35:47 -0300
commit549a55dac6421d17e8759ab1c07c05bf1adec96d (patch)
tree90732f744b33ded27e6da9b94d82c128b4cd8d97
parent9faf816060931f8622d2cac2a88a8fb35111b11b (diff)
Added run script
-rwxr-xr-xrun.sh5
-rwxr-xr-xsetup.sh4
2 files changed, 8 insertions, 1 deletions
diff --git a/run.sh b/run.sh
new file mode 100755
index 0000000..ed21180
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env sh
+
+set -eu
+
+docker-compose -f $1 up -d
diff --git a/setup.sh b/setup.sh
index cc0f550..7fb4cd5 100755
--- a/setup.sh
+++ b/setup.sh
@@ -120,7 +120,7 @@ run_now=${run_now:-"y"}
if [ $run_now == "y" ]; then
echo "Running the server..."
echo "This is going to take a while..."
- docker-compose -f $filename up -d
+ ./run.sh $filename
else
echo "Perfect! You can run the server later using the following command:"
echo ""
@@ -135,6 +135,8 @@ fi
# Cleaning up...
# ============================================================================================
+cp setup.sh $install_location
+
printf "\033c"
echo "========================================================"