Browse Source

[fix] Backward compatibility for NC 14 or older

pull/282/head
ljf (zamentur) 6 years ago
committed by GitHub
parent
commit
30a3d9ceab
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      scripts/upgrade

9
scripts/upgrade

@ -199,8 +199,15 @@ 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 ]
then
NEXTCLOUD_PHP_VERSION=$YNH_PHP_VERSION
else
NEXTCLOUD_PHP_VERSION="7.0"
fi
(cd "$final_path" && exec_as "$app" \
php$YNH_PHP_VERSION occ --no-interaction --no-ansi "$@")
php$NEXTCLOUD_PHP_VERSION occ --no-interaction --no-ansi "$@")
}
# Define a function to add an external storage

Loading…
Cancel
Save