fix(RESTORE): change to mc directory before imports
This commit is contained in:
parent
de96d55268
commit
54ca63657f
@ -249,6 +249,8 @@ fi
|
|||||||
if [ ! -f "$mcDockerCompose" ]; then
|
if [ ! -f "$mcDockerCompose" ]; then
|
||||||
consoleError '1' "docker-compose configuration ($mcDockerCompose) cannot be found."
|
consoleError '1' "docker-compose configuration ($mcDockerCompose) cannot be found."
|
||||||
fi
|
fi
|
||||||
|
# change to mailcow directory so commands execute properly
|
||||||
|
\cd ${mcConfig%/*} || consoleError '4' 'Cannot change to mailcow directory as determined from mailcow.conf location.'
|
||||||
|
|
||||||
### read mailcow.conf and import vars
|
### read mailcow.conf and import vars
|
||||||
# shellcheck source=./mailcow.conf.shellcheck
|
# shellcheck source=./mailcow.conf.shellcheck
|
||||||
|
Loading…
Reference in New Issue
Block a user