From aaa1cae43dbcd60b628acd665ccd72e07c58ba71 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 4 Sep 2018 22:19:45 -0600 Subject: [PATCH] Fixed exit codes --- root/scripts/borgbackup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/scripts/borgbackup.sh b/root/scripts/borgbackup.sh index 1b5735d..9ea826f 100755 --- a/root/scripts/borgbackup.sh +++ b/root/scripts/borgbackup.sh @@ -137,7 +137,7 @@ else echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`]" \ "--Error-- There was a problem creating $sqlDumpDir." >> $logFile echo -e "\e[4;31m--Error-- Script aborted\e[0;31m.\e[0m" >> $logFile - exit 101 + exit 200 fi fi @@ -206,7 +206,7 @@ if [ "$?" = "0" ]; then else echo -e "\e[1;31m--Error-- There was a problem dumping SQL." >> $logFile echo -e "\e[4;31mScript aborted\e[0;31m.\e[0m" >> $logFile - exit 102 + exit 201 fi ## Ready for Borg @@ -273,7 +273,7 @@ else echo -e "This MUST be done manually or NextCloud will not" \ "function!\e[0m" >> $logFile echo -e "\e[4;31mScript aborted\e[0;31m.\e[0m" >> $logFile - exit 102 + exit 101 fi ## Remove 503 error page from webroot so NGINX serves web clients again