Explorar o código

Fix: also find base directory, when not called 'mailcow-dockerized'

chaosbunker %!s(int64=8) %!d(string=hai) anos
pai
achega
d901bd453b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      data/misc/mailcow-setup-relayhost.sh

+ 1 - 1
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