From b05a4ac8d8eff4e0a4e311804c58ed0d348ef168 Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Mon, 16 Apr 2018 01:16:30 -0400 Subject: [PATCH] Update start.sh --- openvpn/start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openvpn/start.sh b/openvpn/start.sh index 1a77636..7b314f7 100755 --- a/openvpn/start.sh +++ b/openvpn/start.sh @@ -57,6 +57,8 @@ if [[ $VPN_ENABLED == "yes" ]]; then # Get line number of auth-user-pass LINE_NUM=$(grep -Fn -m 1 'auth-user-pass' ${VPN_CONFIG} | cut -d: -f 1) sed -i "${LINE_NUM}s/^/auth-user-pass credentials.conf\n/" ${VPN_CONFIG} + else + sed -i "1s/^/auth-user-pass credentials.conf\n/" ${VPN_CONFIG} fi fi