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 ## Stop postfix-mailcow container
operateDocker stop postfix operateDocker stop postfix
# process result # 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}" \ echo -e "${info}${stamp} -- [INFO] Postfix container stopped --${normal}" \
>> "$logFile" >> "$logFile"
else else
@ -543,7 +543,7 @@ fi
## Stop dovecot-mailcow container ## Stop dovecot-mailcow container
operateDocker stop dovecot operateDocker stop dovecot
# process result # 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}" \ echo -e "${info}${stamp} -- [INFO] Dovecot container stopped --${normal}" \
>> "$logFile" >> "$logFile"
else else