mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Update upgrade
This commit is contained in:
parent
8dfe74737b
commit
8cecb3af05
1 changed files with 4 additions and 1 deletions
|
@ -99,9 +99,12 @@ current_major_version=${current_version%%.*}
|
||||||
# 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 24 ]
|
if [ $current_major_version = "last" ]
|
||||||
then
|
then
|
||||||
NEXTCLOUD_PHP_VERSION=$phpversion
|
NEXTCLOUD_PHP_VERSION=$phpversion
|
||||||
|
elif [ $current_major_version -ge 24 ]
|
||||||
|
then
|
||||||
|
NEXTCLOUD_PHP_VERSION="8.0"
|
||||||
elif [ $current_major_version -ge 15 ]
|
elif [ $current_major_version -ge 15 ]
|
||||||
then
|
then
|
||||||
NEXTCLOUD_PHP_VERSION="7.4"
|
NEXTCLOUD_PHP_VERSION="7.4"
|
||||||
|
|
Loading…
Add table
Reference in a new issue