fix(RESTORE): move path to pre-flight

- export path so pre-flight checks are using consistent env
This commit is contained in:
Asif Bacchus
2021-02-08 07:11:47 -07:00
parent 5c7064e2bd
commit 9a363d8510
5 changed files with 26 additions and 1 deletions
+3 -1
View File
@@ -160,6 +160,9 @@ while [ $# -gt 0 ]; do
done
### pre-flight checks
# set path so checks are valid for this script environment
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# docker installed?
if ! command -v docker >/dev/null; then
consoleError '3' 'docker does not seem to be installed!'
@@ -184,7 +187,6 @@ fi
### read mailcow.conf and import vars
# shellcheck source=./mailcow.conf.shellcheck
. "$mcConfig"
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export COMPOSE_HTTP_TIMEOUT="$dockerStartTimeout"
### start logging