1
0
miroir de https://github.com/mail-in-a-box/mailinabox.git synchronisé 2026-04-01 21:27:22 +02:00

Move the db indices after the upgrade

Cette révision appartient à :
Yoann COLIN
2019-02-03 16:11:27 +01:00
Parent 1bcda0eef8
révision 04dab990b2

Voir le fichier

@@ -62,9 +62,6 @@ InstallNextcloud() {
# If this isn't a new installation, immediately run the upgrade script.
# Then check for success (0=ok and 3=no upgrade needed, both are success).
if [ -e $STORAGE_ROOT/owncloud/owncloud.db ]; then
# Add missing indices. NextCloud didn't include this in the normal upgrade because it might take some time.
sudo -u www-data php /usr/local/lib/owncloud/occ db:add-missing-indices
# ownCloud 8.1.1 broke upgrades. It may fail on the first attempt, but
# that can be OK.
sudo -u www-data php /usr/local/lib/owncloud/occ upgrade
@@ -75,6 +72,9 @@ InstallNextcloud() {
sudo -u www-data php /usr/local/lib/owncloud/occ maintenance:mode --off
echo "...which seemed to work."
fi
# Add missing indices. NextCloud didn't include this in the normal upgrade because it might take some time.
sudo -u www-data php /usr/local/lib/owncloud/occ db:add-missing-indices
fi
}