simplify mcConfig existance check

This commit is contained in:
Asif Bacchus 2020-05-07 01:08:36 -06:00
parent 5f0eddf22a
commit 2432139f3d

View File

@ -391,10 +391,7 @@ if [ "$use503" -eq 1 ]; then
fi fi
fi fi
# verify mailcow.conf location and extract path # verify mailcow.conf location and extract path
if [ -f "$mcConfig" ]; then if [ ! -f "$mcConfig" ]; then
# strip filename and get path
mcPath=${mcConfig%/*/}
else
badParam dne "(--mailcow-config)" "$mcConfig" badParam dne "(--mailcow-config)" "$mcConfig"
fi fi
# verify docker-compose file exists # verify docker-compose file exists