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