From 1334975cabedb16d06249613b749c05fbf0b7863 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 8 Mar 2021 00:50:55 -0700 Subject: [PATCH] fix(BACKUP): fix colour var usage SQL dump success and REDIS dump success msg printed 'cyan' instead of using the colour var --- backup/backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/backup.sh b/backup/backup.sh index e6b70f1..fdad10e 100755 --- a/backup/backup.sh +++ b/backup/backup.sh @@ -703,7 +703,7 @@ docker-compose exec -T mysql-mailcow mysqldump --default-character-set=utf8mb4 \ dumpResult=$( docker-compose exec -T mysql-mailcow echo "$?" ) if [ "$dumpResult" -eq 0 ]; then printf "%s[%s] -- [INFO] SQL database dumped successfully --%s\n" \ - "cyan" "$(stamp)" "$norm" >> "$logFile" + "$cyan" "$(stamp)" "$norm" >> "$logFile" else exitError 118 'There was an error dumping the mailcow SQL database.' fi @@ -721,7 +721,7 @@ docker-compose exec -T redis-mailcow redis-cli save >> "$logFile" 2>&1 rdumpResult=$( docker-compose exec -T redis-mailcow echo "$?" ) if [ "$rdumpResult" -eq 0 ]; then printf "%s[%s] -- [INFO] mailcow redis dumped successfully --%s\n" \ - "cyan" "$(stamp)" "$norm" >> "$logFile" + "$cyan" "$(stamp)" "$norm" >> "$logFile" else exitError 119 'There was an error dumping the mailcow redis database.' fi