1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-01-12 04:23:24 +02:00

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

This commit is contained in:
chaosbunker 2017-04-21 11:19:38 +02:00
parent a3bbd76537
commit d901bd453b

View File

@ -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