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