From 006318effae01b959753637ff9833f7b67ad316f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 14 Feb 2024 21:08:09 +0100 Subject: [PATCH] Avoid to override new settings --- src/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.py b/src/app.py index 8b6e38d11..018c339e7 100644 --- a/src/app.py +++ b/src/app.py @@ -1996,7 +1996,10 @@ ynh_app_config_run $1 } ) app_script_env = _make_environment_for_app_script(app) - env.update(app_script_env) + # Note that we only need to update settings wich are not already set + # The settings from config panel should be keep as it is + app_script_env.update(env) + env = app_script_env ret, values = hook_exec(config_script, args=[action], env=env) if ret != 0: