From 03def5b109d5dea6835b679da464447021c93ed8 Mon Sep 17 00:00:00 2001 From: Kayou Date: Tue, 23 Jul 2024 11:58:35 +0200 Subject: [PATCH] appconfig panel: new values were replaced by default values --- src/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app.py b/src/app.py index e477af109..d5e5b1cc0 100644 --- a/src/app.py +++ b/src/app.py @@ -1908,9 +1908,10 @@ ynh_app_config_run $1 logger.debug(f"Calling '{action}' action from config script") app = self.entity app_setting_path = os.path.join(APPS_SETTING_PATH, self.entity) - env = _make_environment_for_app_script(app, workdir=app_setting_path) + app_script_env = _make_environment_for_app_script(app, workdir=app_setting_path) + app_script_env.update(env) - ret, values = hook_exec(config_script, args=[action], env=env) + ret, values = hook_exec(config_script, args=[action], env=app_script_env) if ret != 0: if action == "show": raise YunohostError("app_config_unable_to_read")