From c7b9ec9bcdf1bc9ec1e96cee9dac1a98b258e7e8 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 6 Sep 2018 03:20:09 -0600 Subject: [PATCH] Fixed variable type in NC maint section. Tested script. --- root/scripts/borgbackup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/root/scripts/borgbackup.sh b/root/scripts/borgbackup.sh index e607941..9c661f8 100755 --- a/root/scripts/borgbackup.sh +++ b/root/scripts/borgbackup.sh @@ -278,11 +278,12 @@ fi ## Put NextCloud in maintenance mode echo -e "\e[1;36m[`date +%Y-%m-%d` `date +%H:%M:%S`] Putting NextCloud" \ - "in maintenance mode..." >> $logFile + "in maintenance mode...\e[0m" >> $logFile sudo -u ${webUser} php ${ncroot}/occ maintenance:mode --on >> $logFile 2>&1 # verify maintResult="$?" -if [ "$mainResult" = "0" ]; then + +if [ "$maintResult" = "0" ]; then echo -e "\e[0;36m...done\e[0m" >> $logFile else quit 500