Renamed local install as no bootstrap install.

This commit is contained in:
yohan 2020-04-15 17:25:59 +02:00
parent 0de35b6733
commit abac7e35d9

View File

@ -6,6 +6,14 @@ SCRIPTPATH=$(dirname $SCRIPT)
cd $SCRIPTPATH 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 for NETWORK in reverse-proxy
do do
sudo docker network inspect ${NETWORK} &> /dev/null && continue sudo docker network inspect ${NETWORK} &> /dev/null && continue
@ -14,7 +22,7 @@ do
{ echo "ERROR: could not create network ${NETWORK}, exiting."; exit 1; } { echo "ERROR: could not create network ${NETWORK}, exiting."; exit 1; }
done done
if test -z "$1" || [ "$1" != "local" ] if [ "$REPO" == "bootstrap" ]
then then
test -f ~/openrc.sh || { echo "ERROR: ~/openrc.sh not found, exiting."; exit 1; } test -f ~/openrc.sh || { echo "ERROR: ~/openrc.sh not found, exiting."; exit 1; }
source ~/openrc.sh source ~/openrc.sh