From 1bcda0eef89c8e0f5e46df81104c9b7d01a441d6 Mon Sep 17 00:00:00 2001 From: Yoann COLIN Date: Sun, 3 Feb 2019 15:35:28 +0100 Subject: [PATCH] Add missing indices Thx @yodax for your feedback. --- setup/nextcloud.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/nextcloud.sh b/setup/nextcloud.sh index 46c2a2db..7d407452 100755 --- a/setup/nextcloud.sh +++ b/setup/nextcloud.sh @@ -62,6 +62,9 @@ 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