fix CURRENTVERSION for NC 19 (#1273)

This commit is contained in:
Daniel Hansson 2020-06-03 23:05:00 +02:00 committed by GitHub
parent 824a61b569
commit 8c47858905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -514,6 +514,10 @@ fi
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
occ_command db:add-missing-columns