run: Pass cmd line arguments to openvpn

* Pass command line arguments to openvpn if passed in.  Enables users to
  easily override or add settings.
* Resolves #42
This commit is contained in:
Kyle Manna 2015-05-09 15:17:17 -07:00
parent 35c5d7bf70
commit 2f9947c8e4

View File

@ -33,6 +33,8 @@ if [ "$OVPN_DEFROUTE" != "0" ] || [ "$OVPN_NAT" == "1" ] ; then
done done
fi fi
conf="$OPENVPN/openvpn.conf" if [ "$#" -gt 0 ]; then
exec openvpn "$@"
exec openvpn --config "$conf" else
exec openvpn --config "$OPENVPN/openvpn.conf"
fi