Fixed incorrect variable in err check section of container stop

This commit is contained in:
Asif Bacchus 2018-10-25 04:36:21 -06:00
parent cb01672be8
commit 7eebd44ce4

View File

@ -532,7 +532,7 @@ cd "$mailcowPath"
## Stop postfix-mailcow container
operateDocker stop postfix
# process result
if [ "$dockerResultState" = "False" ] && [ "$dockerResultExit" -eq 0 ]; then
if [ "$dockerResultState" = "false" ] && [ "$dockerResultExit" -eq 0 ]; then
echo -e "${info}${stamp} -- [INFO] Postfix container stopped --${normal}" \
>> "$logFile"
else
@ -543,7 +543,7 @@ fi
## Stop dovecot-mailcow container
operateDocker stop dovecot
# process result
if [ "$dockerResultState" = "False" ] && [ "$dockerResult" -eq 0 ]; then
if [ "$dockerResultState" = "false" ] && [ "$dockerResultExit" -eq 0 ]; then
echo -e "${info}${stamp} -- [INFO] Dovecot container stopped --${normal}" \
>> "$logFile"
else