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