keeping env vars

This commit is contained in:
Kristian Haugene 2015-05-10 18:51:52 +02:00
parent faa3972ab4
commit d129497ca5
2 changed files with 4 additions and 2 deletions

View File

@ -28,7 +28,9 @@ ADD transmission/runUpdates.sh /etc/transmission-daemon/startPortUpdates.sh
ADD transmission/down.sh /etc/transmission-daemon/stop.sh
ADD runOpenVpn.sh /etc/openvpn/start.sh
ENV "TRANSMISSION_ALT_SPEED_DOWN=50" \
ENV PIA_USERNAME=**None** \
PIA_PASSWORD=**None** \
"TRANSMISSION_ALT_SPEED_DOWN=50" \
"TRANSMISSION_ALT_SPEED_ENABLED=false" \
"TRANSMISSION_ALT_SPEED_TIME_BEGIN=540" \
"TRANSMISSION_ALT_SPEED_TIME_DAY=127" \

View File

@ -24,7 +24,7 @@ then
fi
# add PIA user/pass
if [ -z "$PIA_USERNAME" ] || [ -z "$PIA_PASSWORD" ] ; then
if [ "${PIA_USERNAME}" = "**None**" ] || [ "${PIA_PASSWORD}" = "**None**" ] ; then
echo "PIA credentials not set. Exiting."
exit 1
else