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

[fix] PHP version to recommended value

This commit is contained in:
ljf (zamentur) 2023-01-31 03:02:28 +01:00
parent c0cd2b7098
commit 771d79c989

View file

@ -208,9 +208,12 @@ ynh_add_nginx_config
# Define a function to execute commands with `occ`
exec_occ() {
# Backward compatibility to upgrade from older versions
if [ $current_major_version = "last" ] || [ $current_major_version -ge 21 ]
if [ $current_major_version = "last" ] || [ $current_major_version -ge 25 ]
then
NEXTCLOUD_PHP_VERSION=$phpversion
elif [ $current_major_version -ge 21 ]
then
NEXTCLOUD_PHP_VERSION="8.0"
elif [ $current_major_version -ge 15 ]
then
NEXTCLOUD_PHP_VERSION="7.4"