removed trailing slash in config path

This commit is contained in:
Kristian Haugene 2015-10-11 19:14:31 +02:00
parent eb9149a624
commit f532ab5bd5

View File

@ -1,7 +1,7 @@
#!/bin/sh
set -x
vpn_provider="$(echo $OPENVPN_PROVIDER | tr '[A-Z]' '[a-z]')"
vpn_provider_configs="/etc/openvpn/$vpn_provider/"
vpn_provider_configs="/etc/openvpn/$vpn_provider"
if [ ! -d "$vpn_provider_configs" ]; then
echo "Could not find OpenVPN provider: $OPENVPN_PROVIDER"
echo "Please check your settings."