From 85ace3d5fd69476668a988a30794e5f9115863b1 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 7 Sep 2018 03:40:45 -0600 Subject: [PATCH] Replaced enter NC maint section with function call --- root/scripts/borgbackup.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/root/scripts/borgbackup.sh b/root/scripts/borgbackup.sh index 14d9005..e0f5e4e 100755 --- a/root/scripts/borgbackup.sh +++ b/root/scripts/borgbackup.sh @@ -333,17 +333,7 @@ else fi ## Put NextCloud in maintenance mode -echo -e "\e[1;36m[`date +%Y-%m-%d` `date +%H:%M:%S`] Putting NextCloud" \ - "in maintenance mode...\e[0m" >> $logFile -sudo -u ${webUser} php ${ncroot}/occ maintenance:mode --on >> $logFile 2>&1 -# verify -maintResult="$?" - -if [ "$maintResult" = "0" ]; then - echo -e "\e[0;36m...done\e[0m" >> $logFile -else - quit 500 -fi +ncMaint on ## Read sqlDetails file and extract necessary information mapfile -t sqlParams < $sqlDetails