Is there any way to adjust the start.sh script to not exit if the VPN remote is defined in the openvpn.ovpn file? i.e. right now it's:
if [[ ! -z "${VPN_REMOTE}" ]]; then
echo "[info] VPN provider remote gateway defined as ${VPN_REMOTE}"
else
echo "[crit] VPN provider remote gateway not defined (via -e VPN_REMOTE), exiting..." && exit 1
fi
Maybe instead, grab variables from these lines in the ovpn file if they exist, for example, excerpt from AirVpn ovpn file:
proto udp
remote america.vpn.airdns.org 443
So something like after the "else"
else
${VPN_REMOTE} = `grep remote ${VPN_CONFIG} | awk '{print $2}'`
${VPN_PORT} = `grep remote ${VPN_CONFIG} | awk '{print $3}'`
${VPN_PROTOCOL} = `grep proto ${VPN_CONFIG} | awk '{print $2}'`
?