1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00

Make sure to stop the wireguard service to close the interface

This commit is contained in:
tituspijean 2023-08-17 13:25:52 +02:00
parent 4cb1a72736
commit ef86b07b20
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -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
#=================================================