1
0
Fork 0
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:
A Holt 2018-04-29 02:25:14 -04:00 committed by GitHub
parent 8f490949f5
commit 66c4132c6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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