From b4e977da3e91c4520b609e738b22af13f66011e4 Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 6 May 2020 13:38:37 +0100 Subject: [PATCH] specify as argument config file location --- container-setup.sh | 7 ++++++- publish.sh | 7 ++++++- webserver-provision.sh | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/container-setup.sh b/container-setup.sh index bb08296..4806fde 100755 --- a/container-setup.sh +++ b/container-setup.sh @@ -1,6 +1,11 @@ #!/bin/sh -. ./config +if [ -z "$1" ] ; then + echo "Error - must supply config file" + exit 1 +fi + +. "$1" ./dev/container-create.sh diff --git a/publish.sh b/publish.sh index 95c317b..27587e4 100755 --- a/publish.sh +++ b/publish.sh @@ -1,6 +1,11 @@ #!/bin/sh -. ./config +if [ -z "$1" ] ; then + echo "Error - must supply config file" + exit 1 +fi + +. "$1" ./dev/export-data.sh diff --git a/webserver-provision.sh b/webserver-provision.sh index c7c1a27..6986a3a 100755 --- a/webserver-provision.sh +++ b/webserver-provision.sh @@ -1,6 +1,11 @@ #!/bin/sh -. ./config +if [ -z "$1" ] ; then + echo "Error - must supply config file" + exit 1 +fi + +. "$1" _ssh_url="root@$_remote_host.$_domain"