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

Fix upgrade: php version is 8.3 starting from 29.x ? (#692)

This commit is contained in:
Alexandre Aubin 2024-06-20 19:15:15 +02:00 committed by GitHub
parent 38c2ecc365
commit 1ab6c01c98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,10 @@ filter_boring_occ_warnings() {
# 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 older versions # Backward compatibility to upgrade from older versions
if [ $current_major_version = "last" ] || [ $current_major_version -ge 26 ] if [ $current_major_version = "last" ]
then
NEXTCLOUD_PHP_VERSION="8.3"
elif [ $current_major_version -ge 26 ]
then then
NEXTCLOUD_PHP_VERSION="8.2" NEXTCLOUD_PHP_VERSION="8.2"
elif [ $current_major_version -ge 24 ] elif [ $current_major_version -ge 24 ]