Kayou
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
scripts/upgrade
|
|
@ -197,11 +197,11 @@ fi |
|
|
# Define a function to execute commands with `occ` |
|
|
# Define a function to execute commands with `occ` |
|
|
exec_occ() { |
|
|
exec_occ() { |
|
|
# Backward compatibility to upgrade from NC14 or older version |
|
|
# 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 |
|
|
then |
|
|
NEXTCLOUD_PHP_VERSION="7.0" |
|
|
|
|
|
else |
|
|
|
|
|
NEXTCLOUD_PHP_VERSION=$YNH_PHP_VERSION |
|
|
NEXTCLOUD_PHP_VERSION=$YNH_PHP_VERSION |
|
|
|
|
|
else |
|
|
|
|
|
NEXTCLOUD_PHP_VERSION="7.0" |
|
|
fi |
|
|
fi |
|
|
(cd "$final_path" && exec_as "$app" \ |
|
|
(cd "$final_path" && exec_as "$app" \ |
|
|
php$NEXTCLOUD_PHP_VERSION occ --no-interaction --no-ansi "$@") |
|
|
php$NEXTCLOUD_PHP_VERSION occ --no-interaction --no-ansi "$@") |
|
|
|