From 199f89a7507de84ee3bf4f65df12449270ea7728 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Tue, 31 Jan 2023 03:39:43 +0100 Subject: [PATCH] [fix] PHP version during upgrade --- scripts/upgrade | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 5ada4d1..11e0e2c 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -208,12 +208,9 @@ 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 25 ] + if [ $current_major_version = "last" ] || [ $current_major_version -ge 24 ] then NEXTCLOUD_PHP_VERSION=$phpversion - elif [ $current_major_version -ge 21 ] - then - NEXTCLOUD_PHP_VERSION="8.0" elif [ $current_major_version -ge 15 ] then NEXTCLOUD_PHP_VERSION="7.4"