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:
parent
4cb1a72736
commit
ef86b07b20
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue