Fix: also find base directory, when not called 'mailcow-dockerized'
parent
a3bbd76537
commit
d901bd453b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue