mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update iiab-remote-on
This commit is contained in:
parent
4f777e66b6
commit
8f490949f5
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 enable openvpn@xscenet.service
|
||||
systemctl start openvpn@xscenet.service
|
||||
|
@ -13,7 +13,7 @@ systemctl start openvpn@xscenet.service
|
|||
sleep 5
|
||||
ping -c 2 10.8.0.1
|
||||
if [ $? -eq 0 ]; then
|
||||
echo Openvpn successfully started.
|
||||
echo Openvpn successfully started.
|
||||
else
|
||||
echo Openvpn failed to contact remote server.
|
||||
echo Openvpn failed to contact remote server.
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue