From 78a5511fc1927e19454c18a509449cd0d3f11f44 Mon Sep 17 00:00:00 2001 From: Alexander Wolz Date: Sat, 15 Jun 2024 08:54:09 +0200 Subject: [PATCH] fixed referenced script issue --- bin/bootstrap.sh | 8 ++++++-- bin/run.sh | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/bootstrap.sh b/bin/bootstrap.sh index 72a6d95..afec502 100644 --- a/bin/bootstrap.sh +++ b/bin/bootstrap.sh @@ -32,7 +32,9 @@ do echo $RET fi else - echo " Network $NETWORK already exists, skipping" + if [ -z $SCRIPT_DIR ]; then + echo " Network $NETWORK already exists, skipping" + fi fi done @@ -46,7 +48,9 @@ do echo $RET fi else - echo " Volume $VOLUME already exists, skipping" + if [ -z $SCRIPT_DIR ]; then + echo " Volume $VOLUME already exists, skipping" + fi fi done diff --git a/bin/run.sh b/bin/run.sh index ae5d8fa..5b89929 100644 --- a/bin/run.sh +++ b/bin/run.sh @@ -35,7 +35,7 @@ function doRun(){ echo "Using env file: $ENV_FILE" fi - . $SCRIPT_DIR/networks.sh + . $SCRIPT_DIR/bootstrap.sh if [ $TEAR_DOWN ]; then #TODO: only restart or tear down and up again?