diff --git a/Dockerfile b/Dockerfile index b920b59..52487c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ +# qBittorrent, OpenVPN and WireGuard, qbittorrentvpn FROM debian:10-slim WORKDIR /opt diff --git a/README.md b/README.md index e49782c..af2365d 100644 --- a/README.md +++ b/README.md @@ -79,10 +79,10 @@ Access https://IPADDRESS:PORT from a browser on the same network. (for example: |`password`| `adminadmin` | # How to use WireGuard -The container will fail to boot if `VPN_ENABLED` is set and there is no valid .conf file present in the /config/wireguard directory. Drop a .conf file from your VPN provider into /config/wireguard and start the container again. The file must have the name `wg0.conf`. +The container will fail to boot if `VPN_ENABLED` is set and there is no valid .conf file present in the /config/wireguard directory. Drop a .conf file from your VPN provider into /config/wireguard and start the container again. The file must have the name `wg0.conf`, or it will fail to start. # How to use OpenVPN -The container will fail to boot if `VPN_ENABLED` is set and there is no valid .ovpn file present in the /config/openvpn directory. Drop a .ovpn file from your VPN provider into /config/openvpn and start the container again. You may need to edit the ovpn configuration file to load your VPN credentials from a file by setting `auth-user-pass`. +The container will fail to boot if `VPN_ENABLED` is set and there is no valid .ovpn file present in the /config/openvpn directory. Drop a .ovpn file from your VPN provider into /config/openvpn (if necessary with additional files like certificates) and start the container again. You may need to edit the ovpn configuration file to load your VPN credentials from a file by setting `auth-user-pass`. **Note:** The script will use the first ovpn file it finds in the /config/openvpn directory. Adding multiple ovpn files will not start multiple VPN connections. diff --git a/openvpn/start.sh b/openvpn/start.sh index 62f316a..bb1face 100644 --- a/openvpn/start.sh +++ b/openvpn/start.sh @@ -13,7 +13,7 @@ if [[ ! -z "${check_network}" ]]; then exit 1 fi -export VPN_ENABLED=$(echo "${VPN_ENABLED}" | sed -e 's~^[ \t]*~~;s~[ \t]*$~~') +export VPN_ENABLED=$(echo "${VPN_ENABLED,,}" | sed -e 's~^[ \t]*~~;s~[ \t]*$~~') if [[ ! -z "${VPN_ENABLED}" ]]; then echo "[INFO] VPN_ENABLED defined as '${VPN_ENABLED}'" | ts '%Y-%m-%d %H:%M:%.S' else