1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ofbiz_ynh.git synced 2024-09-03 19:46:33 +02:00

Upgrade: cleanup admin key

This commit is contained in:
Félix Piédallu 2024-03-22 15:24:44 +01:00
parent e7eeed3a29
commit 49f05e23c9

View file

@ -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" 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 # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================