From 7eebd44ce4ee2585909a470c187d53e1d9bf46ab Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 25 Oct 2018 04:36:21 -0600 Subject: [PATCH] Fixed incorrect variable in err check section of container stop --- root/scripts/backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/scripts/backup.sh b/root/scripts/backup.sh index e84c45b..a0eece0 100644 --- a/root/scripts/backup.sh +++ b/root/scripts/backup.sh @@ -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