From 94399a5b8415cf0c4860b98d5670c7bdce01f426 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 5 Sep 2018 17:22:57 -0600 Subject: [PATCH] Fixed NC maint mode commands --- root/scripts/borgbackup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/scripts/borgbackup.sh b/root/scripts/borgbackup.sh index 6eb5097..978201b 100755 --- a/root/scripts/borgbackup.sh +++ b/root/scripts/borgbackup.sh @@ -189,7 +189,7 @@ 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 -sudo -u ${webUser} php "${ncroot}/occ maintenance:mode --on" 2>> $logFile +sudo -u ${webUser} php ${ncroot}/occ maintenance:mode --on >> $logFile 2>&1 # verify if [ "$?" = "0" ]; then echo -e "\e[0;36m...done\e[0m" >> $logFile @@ -271,7 +271,7 @@ fi ## Put NextCloud back into operational mode echo -e "\e[1;36m[`date +%Y-%m-%d` `date +%H:%M:%S`] Taking NextCloud" \ "out of maintenance mode..." >> $logFile -sudo -u ${webUser} php "${ncroot}/occ maintenance:mode --off" 2>> $logFile +sudo -u ${webUser} php ${ncroot}/occ maintenance:mode --off >> $logFile 2>&1 # verify if [ "$?" = "0" ]; then echo -e "\e[0;36m...done\e[0m" >> $logFile