From 5da2183b2c4d89f6ae6839edcc97b1f3b680f9bf Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 21 Oct 2018 03:40:01 -0600 Subject: [PATCH] Changed docker-compose command pipe to stderr > $logFile --- 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 097f9f4..00dbf31 100644 --- a/root/scripts/backup.sh +++ b/root/scripts/backup.sh @@ -215,13 +215,13 @@ if [ "$1" = "stop" ]; then echo -e "${op}${stamp} Stopping ${2}-mailcow container...${normal}" \ >> "$logFile" docker-compose stop --timeout ${dockerStopTimeout} ${2}-mailcow \ - >> "$logFile" + 2>> "$logFile" # verify dockerResult=$(docker inspect -f '{{ .State.ExitCode }}' ${COMPOSE_PROJECT_NAME}_${2}-mailcow_1) elif [ "$1" = "start" ]; then echo -e "${op}${stamp} Starting ${2}-mailcow container...${normal}" \ >> "$logFile" - docker-compose start ${2}-mailcow >> "$logFile" + docker-compose start ${2}-mailcow 2>> "$logFile" # verify dockerResult=$(docker inspect -f '{{ .State.Running }}' ${COMPOSE_PROJECT_NAME}_${2}-mailcow_1) fi