From 6e18a5af152c9de55d38f8931f7ca674fd6c1854 Mon Sep 17 00:00:00 2001 From: A Holt Date: Wed, 5 Sep 2018 15:13:38 -0400 Subject: [PATCH] longstanding syntax error (bash wouldn't run this on Ubuntu 18.04) --- roles/openvpn/templates/iiab-remote-on.j2 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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