From 9d06dc44f564f9938c55783e54ec56af5b2378d5 Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Sun, 11 Feb 2018 23:09:26 -0500 Subject: [PATCH] Update start.sh --- openvpn/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn/start.sh b/openvpn/start.sh index 4a40cde..57098cb 100755 --- a/openvpn/start.sh +++ b/openvpn/start.sh @@ -45,7 +45,7 @@ if [[ $VPN_ENABLED == "yes" ]]; then /usr/bin/dos2unix "${VPN_CONFIG}" 1> /dev/null # parse values from ovpn file - export vpn_remote_line=$(cat "${VPN_CONFIG}" | grep -P -o -m 1 '(?<=^remote\s)[^\n\r]+' | sed -e 's~^[ \t]*~~;s~[ \t]*$~~') + export vpn_remote_line=$(cat "${VPN_CONFIG}" | grep -E -o -m 1 '(?<=^remote\s)[^\n\r]+' | sed -e 's~^[ \t]*~~;s~[ \t]*$~~') if [[ ! -z "${vpn_remote_line}" ]]; then echo "$(date) [info] VPN remote line defined as '${vpn_remote_line}'" else