From 1eb5c6131aedcb96bc2d87d7a38d460669767c85 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 26 Dec 2017 17:40:49 +0100 Subject: [PATCH] Apply the php5 path also for upgrades --- src/yunohost/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index d6ce3747c..f953c982c 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -613,6 +613,9 @@ def app_upgrade(auth, app=[], url=None, file=None): env_dict["YNH_APP_INSTANCE_NAME"] = app_instance_name env_dict["YNH_APP_INSTANCE_NUMBER"] = str(app_instance_nb) + # Apply dirty patch to make php5 apps compatible with php7 + _patch_php5(extracted_app_folder) + # Execute App upgrade script os.system('chown -hR admin: %s' % INSTALL_TMP) if hook_exec(extracted_app_folder + '/scripts/upgrade', args=args_list, env=env_dict, user="root") != 0: