diff --git a/roles/openvpn/templates/iiab-remote-on.j2 b/roles/openvpn/templates/iiab-remote-on.j2 index 6f6c8104a..f97bf11e7 100644 --- a/roles/openvpn/templates/iiab-remote-on.j2 +++ b/roles/openvpn/templates/iiab-remote-on.j2 @@ -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