From 5e7bacaeb46f822395597ecef7177ff318582ae2 Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 8 Oct 2020 16:51:25 +0200 Subject: [PATCH] [Helper] Install Nextcloud 20 --- helper-scripts/nextcloud.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/helper-scripts/nextcloud.sh b/helper-scripts/nextcloud.sh index 284a3563..c3fa2439 100755 --- a/helper-scripts/nextcloud.sh +++ b/helper-scripts/nextcloud.sh @@ -69,11 +69,11 @@ elif [[ ${NC_UPDATE} == "y" ]]; then if ! grep -q 'installed: true' <<<$(docker exec -it -u www-data $(docker ps -f name=php-fpm-mailcow -q) bash -c "/web/nextcloud/occ --no-warnings status"); then echo "Nextcloud seems not to be installed." exit 1 - elif ! grep -q 'version: 19\.' <<<$(docker exec -it -u www-data $(docker ps -f name=php-fpm-mailcow -q) bash -c "/web/nextcloud/occ --no-warnings status"); then + elif ! grep -q 'version: 20\.' <<<$(docker exec -it -u www-data $(docker ps -f name=php-fpm-mailcow -q) bash -c "/web/nextcloud/occ --no-warnings status"); then echo "Cannot upgrade to new major version, please update manually." exit 1 else - curl -L# -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/latest-19.tar.bz2" || { echo "Failed to download Nextcloud archive."; exit 1; } \ + curl -L# -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/latest-20.tar.bz2" || { echo "Failed to download Nextcloud archive."; exit 1; } \ && tar -xjf nextcloud.tar.bz2 -C ./data/web/ \ && rm nextcloud.tar.bz2 \ && mkdir -p ./data/web/nextcloud/data \ @@ -94,7 +94,7 @@ elif [[ ${NC_INSTALL} == "y" ]]; then ADMIN_NC_PASS=$(