From c05139a333ec56fc585305f9bcb2f1c50bad2065 Mon Sep 17 00:00:00 2001 From: MrMelon Date: Tue, 23 Mar 2021 21:02:35 +0000 Subject: [PATCH] Stop and disable daemon before updating scripts --- install-components | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install-components b/install-components index a2c92bf..61f7d32 100755 --- a/install-components +++ b/install-components @@ -2,6 +2,10 @@ # new lib folder sudo mkdir -p /usr/lib/melon-vpn/ +# stop and disable daemon first +sudo systemctl stop melonvpndaemon +sudo systemctl disable melonvpndaemon + # copying sudo cp MelonVPNCore/bin/Release/MelonVPNCore.dll /usr/lib/melon-vpn/ sudo cp MelonVPNCore/bin/Release/Newtonsoft.Json.dll /usr/lib/melon-vpn/ @@ -59,8 +63,6 @@ sudo chmod +x /usr/bin/melonvpnclient echo "[info] Restarting daemon" # cuz science -sudo systemctl stop melonvpndaemon -sudo systemctl disable melonvpndaemon sudo systemctl daemon-reload sudo systemctl enable melonvpndaemon sudo systemctl start melonvpndaemon