From 49f05e23c99b8cc8569315bc4a1dad3211cef082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 22 Mar 2024 15:24:44 +0100 Subject: [PATCH] Upgrade: cleanup admin key --- scripts/upgrade | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 6a1a30a..1c1a1b3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -15,6 +15,16 @@ ynh_script_progression --message="Stopping $app's systemd service..." ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd" --line_match="Stopped OFBiz Service" +#================================================= +# ENSURE DOWNWARD COMPATIBILITY +#================================================= +ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 + +# Remove legacy admin key +if [ -n "${admin:-}" ]; then + ynh_app_setting_delete --app="$app" --key=admin +fi + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================