From c84877015f0e662efa176c4bad0d43686c35f40e Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 14 Apr 2019 01:24:42 +0200 Subject: [PATCH] Update remove --- scripts/remove | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/remove b/scripts/remove index 85ab159..82a7634 100644 --- a/scripts/remove +++ b/scripts/remove @@ -79,8 +79,8 @@ ynh_remove_logrotate # CLOSE A PORT #================================================= -# Close port in firewall -sudo yunohost firewall disallow TCP $sync_port +ynh_print_info "Closing port $sync_port" +ynh_exec_warn_less yunohost firewall disallow TCP $sync_port #================================================= # GENERIC FINALIZATION @@ -90,7 +90,7 @@ sudo yunohost firewall disallow TCP $sync_port ynh_print_info "Removing the dedicated system user" # Delete a system user -sudo userdel $sync_user +ynh_system_user_delete $sync_user #================================================= # END OF SCRIPT