Avoid to override new settings

This commit is contained in:
Josué Tille 2024-02-14 21:08:09 +01:00 committed by Bram
parent c9d570e6a1
commit 006318effa

View file

@ -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: