From 824a61b569341f969a6ce6c2effd616d1aaefc7e Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Wed, 3 Jun 2020 23:03:11 +0200 Subject: [PATCH] Update nextcloud_update.sh --- nextcloud_update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nextcloud_update.sh b/nextcloud_update.sh index 2e746764..5aa73963 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -477,6 +477,10 @@ then print_text_in_color "$ICyan" "Optimizing Nextcloud..." yes | occ_command db:convert-filecache-bigint occ_command db:add-missing-indices + while [ -z "$CURRENTVERSION" ] + do + CURRENTVERSION=$(sudo -u www-data php $NCPATH/occ status | grep "versionstring" | awk '{print $3}') + done if [ "${CURRENTVERSION%%.*}" -ge "19" ] then check_php