diff options
author | Daniel Hansson <github@hanssonit.se> | 2020-06-04 00:05:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 00:05:00 +0300 |
commit | 8c47858905de3a2503f0b6c6bbfec800cdaf390a (patch) | |
tree | 6503ed77866e2205d054021ed79c61d1ab495f19 /nextcloud_install_production.sh | |
parent | 824a61b569341f969a6ce6c2effd616d1aaefc7e (diff) |
fix CURRENTVERSION for NC 19 (#1273)
Diffstat (limited to 'nextcloud_install_production.sh')
-rw-r--r-- | nextcloud_install_production.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 |