From a689b34b607e2dcdfbb670553e50df5db6d39085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 20 Jun 2024 16:08:54 +0200 Subject: [PATCH] Reorder system config removal --- scripts/remove | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/remove b/scripts/remove index 828d42f..7cf808b 100755 --- a/scripts/remove +++ b/scripts/remove @@ -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