From 6684153e00996d89545d06e98a1576cf551ecb0a Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Sun, 9 Jul 2023 08:14:18 +0200 Subject: [PATCH] Update docker-entrypoint.sh Co-authored-by: J0WI Signed-off-by: Antonin Delpeuch --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index c129857e..4c85f6ad 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -157,7 +157,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP if version_greater "$image_version" "$installed_version"; then echo "Initializing nextcloud $image_version ..." if [ "$installed_version" != "0.0.0.0" ]; then - if [ ${majorImage%%.*} -gt $((${majorInstalled%%.*} + 1)) ]; then + if [ "${image_version%%.*}" -gt "$((${installed_version%%.*} + 1))" ]; then echo "Can't start Nextcloud because upgrading from $installed_version to $image_version is not supported." echo "It is only possible to upgrade one major version at a time. For example, if you want to upgrade from version 14 to 16, you will have to upgrade from version 14 to 15, then from 15 to 16." exit 1