From 08a02d6cf245b51dfbc24101358830dfd0403584 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sun, 5 Aug 2018 15:33:18 +0200 Subject: [PATCH] add optimization commands --- nextcloud_update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nextcloud_update.sh b/nextcloud_update.sh index cc1fe309..01735066 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -275,6 +275,10 @@ then bash $SECURE & spinner_loading occ_command maintenance:mode --off occ_command upgrade --no-app-disable + # Optimize + echo "Optimizing Nextcloud..." + yes | occ_command db:convert-filecache-bigint + occ_command db:add-missing-indices else msg_box "Something went wrong with backing up your old nextcloud instance Please check in $BACKUP if the folders exist."