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:
parent
35c5d7bf70
commit
2f9947c8e4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user