From abac7e35d94015cbd3ea769baaa732ee00e87edd Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Wed, 15 Apr 2020 17:25:59 +0200 Subject: [PATCH] Renamed local install as no bootstrap install. --- create.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/create.sh b/create.sh index dc396f9..2817716 100755 --- a/create.sh +++ b/create.sh @@ -6,6 +6,14 @@ SCRIPTPATH=$(dirname $SCRIPT) cd $SCRIPTPATH +if test -z "$1" && [ "$1" != "bootstrap" ] && [ "$1" != "normal" ] +then + echo "First argument must be \"bootstap\" or normal" + exit 1 +else + REPO="$1" +fi + for NETWORK in reverse-proxy do sudo docker network inspect ${NETWORK} &> /dev/null && continue @@ -14,7 +22,7 @@ do { echo "ERROR: could not create network ${NETWORK}, exiting."; exit 1; } done -if test -z "$1" || [ "$1" != "local" ] +if [ "$REPO" == "bootstrap" ] then test -f ~/openrc.sh || { echo "ERROR: ~/openrc.sh not found, exiting."; exit 1; } source ~/openrc.sh