From 8c47858905de3a2503f0b6c6bbfec800cdaf390a Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Wed, 3 Jun 2020 23:05:00 +0200 Subject: [PATCH] fix CURRENTVERSION for NC 19 (#1273) --- nextcloud_install_production.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index e9c86979..eb54ae5e 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -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