From 98bef85aca66bf4b9ff1e7d8eedca5ead8654fd8 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Tue, 31 Oct 2023 04:46:53 +0100 Subject: [PATCH] [fix] Upgrade from 25 --- scripts/upgrade | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index eb1adb6..4528543 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -208,14 +208,17 @@ ynh_add_nginx_config # Define a function to execute commands with `occ` exec_occ() { # Backward compatibility to upgrade from older versions - if [ $current_major_version = "last" ] || [ $current_major_version -ge 24 ] + if [ $current_major_version = "last" ] || [ $current_major_version -ge 26 ] then NEXTCLOUD_PHP_VERSION=$phpversion - elif [ $current_major_version -ge 15 ] + elif [ $current_major_version -ge 25 ] + then + NEXTCLOUD_PHP_VERSION="8.1" + elif [ $current_major_version -ge 18 ] then NEXTCLOUD_PHP_VERSION="7.4" else - NEXTCLOUD_PHP_VERSION="7.0" + NEXTCLOUD_PHP_VERSION="7.1" fi (cd "$final_path" && ynh_exec_as "$app" \ php$NEXTCLOUD_PHP_VERSION --define apc.enable_cli=1 occ --no-interaction --no-ansi "$@")