apps: when creating the app's bash env for script, make sure to use the manifest from the workdir instead of app setting dir, which is important for consistency during edge case when upgrade from v1 to v2 fails

This commit is contained in:
Alexandre Aubin 2023-02-23 14:53:42 +01:00
parent 79c9a7b294
commit bab27014d9

View file

@ -2845,7 +2845,8 @@ def _make_environment_for_app_script(
):
app_setting_path = os.path.join(APPS_SETTING_PATH, app)
manifest = _get_manifest_of_app(app_setting_path)
manifest = _get_manifest_of_app(workdir if workdir else app_setting_path)
app_id, app_instance_nb = _parse_app_instance_name(app)
env_dict = {