From 9b30e20e260931a95a1f955c64a055246c5db061 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 2 Jan 2021 14:10:12 +0100 Subject: [PATCH] Swap service removal order Prevents warning about wireguard.service being still activable if wireguard.path is not removed first --- scripts/remove | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/remove b/scripts/remove index c46bce2..0c0fe93 100644 --- a/scripts/remove +++ b/scripts/remove @@ -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 #=================================================