From 8d1bb6046bbee91cd0ef3011ae675202e2519e96 Mon Sep 17 00:00:00 2001 From: Kayou Date: Fri, 19 Jun 2020 10:54:14 +0200 Subject: [PATCH] Fix backward compatibility --- scripts/upgrade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index e14cd53..7800a53 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -197,11 +197,11 @@ fi # Define a function to execute commands with `occ` exec_occ() { # Backward compatibility to upgrade from NC14 or older version - if [ $current_major_version -lt 15 ] + if [ $current_major_version = "last" ] || [ $current_major_version -ge 15 ] then - NEXTCLOUD_PHP_VERSION="7.0" - else NEXTCLOUD_PHP_VERSION=$YNH_PHP_VERSION + else + NEXTCLOUD_PHP_VERSION="7.0" fi (cd "$final_path" && exec_as "$app" \ php$NEXTCLOUD_PHP_VERSION occ --no-interaction --no-ansi "$@")