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

master
chaosbunker 2017-04-21 11:19:38 +02:00
parent a3bbd76537
commit d901bd453b
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ fi
# Find script directory and move to base directory of mailcow-dockerized # Find script directory and move to base directory of mailcow-dockerized
# so docker-compose is executed from the right location # 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 cd $DIR
if [[ ${1} == "reset" ]]; then if [[ ${1} == "reset" ]]; then