|
|
@ -176,16 +176,16 @@ ynh_install_app_dependencies $pkg_dependencies |
|
|
# VERSION TO THE NEXT ONE |
|
|
# VERSION TO THE NEXT ONE |
|
|
#================================================= |
|
|
#================================================= |
|
|
|
|
|
|
|
|
if [ "$upgrade_type" == "UPGRADE_APP" ] |
|
|
|
|
|
then |
|
|
|
|
|
ynh_script_progression --message="Upgrading nextcloud..." --weight=3 |
|
|
|
|
|
|
|
|
|
|
|
# Define a function to execute commands with `occ` |
|
|
# Define a function to execute commands with `occ` |
|
|
exec_occ() { |
|
|
exec_occ() { |
|
|
(cd "$final_path" && exec_as "$app" \ |
|
|
(cd "$final_path" && exec_as "$app" \ |
|
|
php occ --no-interaction --no-ansi "$@") |
|
|
php occ --no-interaction --no-ansi "$@") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if [ "$upgrade_type" == "UPGRADE_APP" ] |
|
|
|
|
|
then |
|
|
|
|
|
ynh_script_progression --message="Upgrading nextcloud..." --weight=3 |
|
|
|
|
|
|
|
|
# Load the last available version |
|
|
# Load the last available version |
|
|
source upgrade.d/upgrade.last.sh |
|
|
source upgrade.d/upgrade.last.sh |
|
|
last_version=$next_version |
|
|
last_version=$next_version |
|
|
|