Reorder system config removal

This commit is contained in:
Félix Piédallu 2024-06-20 16:08:54 +02:00
parent cd07a23a45
commit a689b34b60

View file

@ -27,16 +27,14 @@ ynh_script_progression --message="Removing system configurations related to $app
### This should be a symetric version of what happens in the install script
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then
ynh_script_progression --message="Removing $app service integration..." --weight=1
yunohost service remove "$app"
fi
ynh_remove_fail2ban_config
ynh_remove_logrotate
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status "$app" >/dev/null; then
yunohost service remove "$app"
fi
ynh_remove_systemd_config
ynh_remove_nginx_config