Stop and disable daemon before updating scripts
This commit is contained in:
parent
42c5823fc1
commit
c05139a333
@ -2,6 +2,10 @@
|
|||||||
# new lib folder
|
# new lib folder
|
||||||
sudo mkdir -p /usr/lib/melon-vpn/
|
sudo mkdir -p /usr/lib/melon-vpn/
|
||||||
|
|
||||||
|
# stop and disable daemon first
|
||||||
|
sudo systemctl stop melonvpndaemon
|
||||||
|
sudo systemctl disable melonvpndaemon
|
||||||
|
|
||||||
# copying
|
# copying
|
||||||
sudo cp MelonVPNCore/bin/Release/MelonVPNCore.dll /usr/lib/melon-vpn/
|
sudo cp MelonVPNCore/bin/Release/MelonVPNCore.dll /usr/lib/melon-vpn/
|
||||||
sudo cp MelonVPNCore/bin/Release/Newtonsoft.Json.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"
|
echo "[info] Restarting daemon"
|
||||||
# cuz science
|
# cuz science
|
||||||
sudo systemctl stop melonvpndaemon
|
|
||||||
sudo systemctl disable melonvpndaemon
|
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable melonvpndaemon
|
sudo systemctl enable melonvpndaemon
|
||||||
sudo systemctl start melonvpndaemon
|
sudo systemctl start melonvpndaemon
|
||||||
|
Loading…
Reference in New Issue
Block a user