VPN_ENABLED not case sensitive
This commit is contained in:
parent
28463bf573
commit
96e038d282
@ -1,3 +1,4 @@
|
||||
# qBittorrent, OpenVPN and WireGuard, qbittorrentvpn
|
||||
FROM debian:10-slim
|
||||
|
||||
WORKDIR /opt
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user