Ensure that maintenance mode is off after nextcloud upgrade
This commit is contained in:
parent
029c69654e
commit
7f18fbaaa6
|
@ -192,6 +192,7 @@ function upgrade_nextcloud {
|
||||||
sudo -u www-data ./occ maintenance:repair
|
sudo -u www-data ./occ maintenance:repair
|
||||||
sudo -u www-data ./occ files:cleanup
|
sudo -u www-data ./occ files:cleanup
|
||||||
sudo -u www-data ./occ files:scan --all
|
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:cleanup
|
||||||
sudo -u www-data ./occ files:scan --all
|
sudo -u www-data ./occ files:scan --all
|
||||||
sudo -u www-data ./occ maintenance:repair
|
sudo -u www-data ./occ maintenance:repair
|
||||||
|
sudo -u www-data ./occ maintenance:mode --off
|
||||||
|
|
||||||
# move the data directory
|
# move the data directory
|
||||||
mv /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs/data /var/www/${NEXTCLOUD_DOMAIN_NAME}/
|
mv /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs/data /var/www/${NEXTCLOUD_DOMAIN_NAME}/
|
||||||
|
|
Loading…
Reference in New Issue