From e821c6c06b89db4619d3355f35e6101dff15731f Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 1 Apr 2020 03:54:51 +0200 Subject: [PATCH] [fix] "last" don't pass correctly --- scripts/upgrade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 77fd66e..895e79c 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -200,11 +200,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 -gt 14 ] + if [ $current_major_version -lt 15 ] then - NEXTCLOUD_PHP_VERSION=$YNH_PHP_VERSION - else NEXTCLOUD_PHP_VERSION="7.0" + else + NEXTCLOUD_PHP_VERSION=$YNH_PHP_VERSION fi (cd "$final_path" && exec_as "$app" \ php$NEXTCLOUD_PHP_VERSION occ --no-interaction --no-ansi "$@")