simplify mcConfig existance check
This commit is contained in:
parent
5f0eddf22a
commit
2432139f3d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user