Update start.sh

This commit is contained in:
rolandb5
2016-03-09 07:48:14 +01:00
parent 9a1683f279
commit c0a8b6faa8

View File

@@ -3,7 +3,7 @@
# Source our persisted env variables from container startup
. /etc/transmission/environment-variables.sh
tun0ip=$(ifconfig tun0 | sed -n '2 p' | awk '{print $2}' | cut -d: -f2)
tun0ip=$4
echo "Updating TRANSMISSION_BIND_ADDRESS_IPV4 to tun0 ip: ${tun0ip}"
export TRANSMISSION_BIND_ADDRESS_IPV4=${tun0ip}