diff --git a/scripts/remove b/scripts/remove index 837b567..3b10d86 100644 --- a/scripts/remove +++ b/scripts/remove @@ -34,6 +34,9 @@ fi #================================================= ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1 +# Stop wg-quick service +systemctl stop wg-quick@wg0 + # YunoHost does not handle services not ending with .service, let's remove it manually systemctl stop wireguard@wg0.path systemctl disable wireguard@wg0.path --quiet @@ -71,10 +74,7 @@ ynh_remove_logrotate #================================================= # SPECIFIC REMOVE -# Delete the wg0 interface #================================================= -ip link delete wg0 -#============================================= # REMOVE VARIOUS FILES #=================================================