mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
Swap service removal order
Prevents warning about wireguard.service being still activable if wireguard.path is not removed first
This commit is contained in:
parent
80782d4fc5
commit
9b30e20e26
1 changed files with 5 additions and 4 deletions
|
@ -39,15 +39,16 @@ fi
|
|||
#=================================================
|
||||
ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1
|
||||
|
||||
# Remove the dedicated systemd configs
|
||||
ynh_remove_systemd_config --service=wireguard
|
||||
ynh_remove_systemd_config --service=wireguard_ui
|
||||
|
||||
# YunoHost does not handle services not ending with .service, let's remove it manually
|
||||
systemctl stop wireguard.path
|
||||
systemctl disable wireguard.path --quiet
|
||||
ynh_secure_remove --file="/etc/systemd/system/wireguard.path"
|
||||
systemctl daemon-reload
|
||||
|
||||
# Remove the dedicated systemd configs
|
||||
ynh_remove_systemd_config --service=wireguard
|
||||
ynh_remove_systemd_config --service=wireguard_ui
|
||||
|
||||
#=================================================
|
||||
# REMOVE DEPENDENCIES
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue