From 6a71870278a2036627f8242499144162c39c40b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Kn=C3=B6ppler?= <6317548+theCalcaholic@users.noreply.github.com> Date: Thu, 2 Feb 2023 12:15:56 +0100 Subject: [PATCH] run-parts.sh: Read NC version from /data instead of /var/www MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com> Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> --- build/docker/debian-ncp/run-parts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/docker/debian-ncp/run-parts.sh b/build/docker/debian-ncp/run-parts.sh index bc6d9ac1..2a058890 100755 --- a/build/docker/debian-ncp/run-parts.sh +++ b/build/docker/debian-ncp/run-parts.sh @@ -18,11 +18,11 @@ then cp -raT /data-ro /data fi -CURRENT_NC_VERSION="$(sudo -u www-data php -r "include(\"/var/www/nextcloud/config/config.php\"); echo(\$CONFIG[\"version\"]);")" +CURRENT_NC_VERSION="$(sudo -u www-data php -r "include(\"/data/nextcloud/config/config.php\"); echo(\$CONFIG[\"version\"]);")" CURRENT_NC_MAJ="${CURRENT_NC_VERSION%%.*}" [[ "$CURRENT_NC_MAJ" -ge "$MINIMUM_NC_VERSION" ]] || { echo "This image of NCP requires at least Nextcloud version ${MINIMUM_NC_VERSION} but you have ${CURRENT_NC_VERSION} installed. " \ - "Please upgrade your Nextcloud first (using the web UI), before upgrading to this NCP version." + "Please upgrade your Nextcloud first (using the web UI on an older NCP image), before upgrading to this NCP version." exit 1 }