mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-14 14:44:57 +00:00
19 lines
544 B
Bash
Executable File
19 lines
544 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ ! -z "$OPEN_VPN_CONFIG" ]
|
|
then
|
|
if [ -f /etc/openvpn/"${OPEN_VPN_CONFIG}".ovpn ]
|
|
then
|
|
echo "Starting OpenVPN using config ${OPEN_VPN_CONFIG}.ovpn"
|
|
exec openvpn --config /etc/openvpn/"${OPEN_VPN_CONFIG}".ovpn
|
|
else
|
|
echo "Supplied config ${OPEN_VPN_CONFIG}.ovpn could not be found."
|
|
echo "Using default OpenVPN gateway: Netherlands"
|
|
exec openvpn --config /etc/openvpn/Netherlands.ovpn
|
|
fi
|
|
else
|
|
echo "No VPN configuration provided. Using default: Netherlands"
|
|
exec openvpn --config /etc/openvpn/Netherlands.ovpn
|
|
fi
|
|
|