From 21a6af881771b3780add40dafe23db7a03fd0605 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Mon, 17 Jan 2022 19:46:06 +0100 Subject: [PATCH] Fixed interactive mode of install.sh --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index d283175..37975f8 100755 --- a/install.sh +++ b/install.sh @@ -49,10 +49,6 @@ while getopts "hi:s:c:" opt; do done shift $((OPTIND-1)) -# Load configuration file -echo "Loading config file '$config'..." -source $config - OPTS=$(ls -d $PWD/src/*/ | grep -v __ | xargs basename -a) valid=0 @@ -90,6 +86,10 @@ if [[ "$valid" != "1" ]]; then usage 1 fi +# Load configuration file +echo "Loading config file '$config'..." +source $config + source $PWD/src/$service/constants-service.conf # CHeck is the newest template available, else download it. @@ -162,4 +162,4 @@ if [[ $service == "zmb-ad" ]]; then pct stop $LXC_NBR pct set $LXC_NBR \-nameserver $(echo $LXC_IP | cut -d'/' -f 1) pct start $LXC_NBR -fi \ No newline at end of file +fi