From 7f18fbaaa6e8e35469f0061ffb037d6808ad55e6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 12 May 2017 13:00:31 +0100 Subject: [PATCH] Ensure that maintenance mode is off after nextcloud upgrade --- src/freedombone-app-nextcloud | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-app-nextcloud b/src/freedombone-app-nextcloud index 924ab407..f6c567a0 100755 --- a/src/freedombone-app-nextcloud +++ b/src/freedombone-app-nextcloud @@ -192,6 +192,7 @@ function upgrade_nextcloud { sudo -u www-data ./occ maintenance:repair sudo -u www-data ./occ files:cleanup sudo -u www-data ./occ files:scan --all + sudo -u www-data ./occ maintenance:mode --off } @@ -617,6 +618,7 @@ function install_nextcloud_main { sudo -u www-data ./occ files:cleanup sudo -u www-data ./occ files:scan --all sudo -u www-data ./occ maintenance:repair + sudo -u www-data ./occ maintenance:mode --off # move the data directory mv /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs/data /var/www/${NEXTCLOUD_DOMAIN_NAME}/