mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Update iiab-remote-off
This commit is contained in:
parent
440b21102b
commit
0f21da5477
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
# do nothing if it is not installed
|
# do nothing if it is not installed
|
||||||
which openvpn
|
which openvpn
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo Cannot find the openvpn program.
|
echo Cannot find the OpenVPN program (openvpn).
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
systemctl disable openvpn@xscenet.service
|
systemctl disable openvpn@xscenet.service
|
||||||
|
@ -13,7 +13,7 @@ systemctl stop openvpn@xscenet.service
|
||||||
sleep 5
|
sleep 5
|
||||||
ps -e|grep vpn
|
ps -e|grep vpn
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo Openvpn failed to stop.
|
echo OpenVPN failed to stop.
|
||||||
else
|
else
|
||||||
echo Successfully stopped and disabled Openvpn
|
echo Successfully stopped and disabled OpenVPN.
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue