1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Fix backward upgrade compatibility

This commit is contained in:
AlexF 2022-11-12 22:03:49 +01:00 committed by ljf (zamentur)
parent 79ac36bc28
commit 9f1312d308

View file

@ -207,10 +207,12 @@ ynh_add_nginx_config
# 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 older versions
if [ $current_major_version = "last" ] || [ $current_major_version -ge 15 ] if [ $current_major_version = "last" ] || [ $current_major_version -ge 20 ]
then then
NEXTCLOUD_PHP_VERSION=$phpversion NEXTCLOUD_PHP_VERSION=$phpversion
elif [ $current_major_version -ge 15 ]
NEXTCLOUD_PHP_VERSION="7.4"
else else
NEXTCLOUD_PHP_VERSION="7.0" NEXTCLOUD_PHP_VERSION="7.0"
fi fi