From d901bd453b8373e00cace8116b97cb6224b14f95 Mon Sep 17 00:00:00 2001 From: chaosbunker Date: Fri, 21 Apr 2017 11:19:38 +0200 Subject: [PATCH] Fix: also find base directory, when not called 'mailcow-dockerized' --- data/misc/mailcow-setup-relayhost.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/misc/mailcow-setup-relayhost.sh b/data/misc/mailcow-setup-relayhost.sh index 5aa2f09d..486435a8 100755 --- a/data/misc/mailcow-setup-relayhost.sh +++ b/data/misc/mailcow-setup-relayhost.sh @@ -10,7 +10,7 @@ fi # Find script directory and move to base directory of mailcow-dockerized # so docker-compose is executed from the right location -DIR=$(echo $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | sed 's/mailcow-dockerized.*/mailcow-dockerized/') +DIR=$(echo $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | sed 's/data\/misc.*//') cd $DIR if [[ ${1} == "reset" ]]; then