Ensure that maintenance mode is off after nextcloud upgrade

This commit is contained in:
Bob Mottram 2017-05-12 13:00:31 +01:00
parent 029c69654e
commit 7f18fbaaa6
1 changed files with 2 additions and 0 deletions

View File

@ -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}/