mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
longstanding syntax error (bash wouldn't run this on Ubuntu 18.04)
This commit is contained in:
parent
7451e59400
commit
6e18a5af15
1 changed files with 6 additions and 3 deletions
|
@ -1,12 +1,15 @@
|
|||
#!/bin/bash
|
||||
# script to turn on openvpn
|
||||
|
||||
# do nothing if it is not installed
|
||||
# /usr/bin/iiab-remote-on should turn on multiple remote support services like
|
||||
# OpenVPN and others, for remote support, so they work even after reboot.
|
||||
|
||||
# Do nothing if OpenVPN not installed
|
||||
which openvpn
|
||||
if [ $? -ne 0 ]; then
|
||||
echo Cannot find the OpenVPN program (openvpn).
|
||||
echo 'Cannot find the OpenVPN program (openvpn).'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
systemctl enable openvpn
|
||||
systemctl start openvpn
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue