mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-25 12:04:58 +00:00
Update start.sh
This commit is contained in:
parent
b3b057390f
commit
db9188c3c5
@ -82,7 +82,7 @@ if [[ $VPN_ENABLED == "yes" ]]; then
|
|||||||
export VPN_PROTOCOL="tcp"
|
export VPN_PROTOCOL="tcp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VPN_DEVICE_TYPE=$(cat "${VPN_CONFIG}" | grep -P -o -m 1 '(?<=^dev\s)[^\r\n\d]+' | sed -e 's~^[ \t]*~~;s~[ \t]*$~~')
|
VPN_DEVICE_TYPE=$(cat "${VPN_CONFIG}" | awk '/dev / {print $2; exit}' | sed -e 's~^[ \t]*~~;s~[ \t]*$~~')
|
||||||
if [[ ! -z "${VPN_DEVICE_TYPE}" ]]; then
|
if [[ ! -z "${VPN_DEVICE_TYPE}" ]]; then
|
||||||
export VPN_DEVICE_TYPE="${VPN_DEVICE_TYPE}0"
|
export VPN_DEVICE_TYPE="${VPN_DEVICE_TYPE}0"
|
||||||
echo "$(date) [info] VPN_DEVICE_TYPE defined as '${VPN_DEVICE_TYPE}'"
|
echo "$(date) [info] VPN_DEVICE_TYPE defined as '${VPN_DEVICE_TYPE}'"
|
||||||
|
Loading…
Reference in New Issue
Block a user