1
0
Fork 0
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:
tituspijean 2021-01-02 14:10:12 +01:00
parent 80782d4fc5
commit 9b30e20e26

View file

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