From d129497ca5579ff63c589d99fca9cf21aa60a12b Mon Sep 17 00:00:00 2001 From: Kristian Haugene Date: Sun, 10 May 2015 18:51:52 +0200 Subject: [PATCH] keeping env vars --- Dockerfile | 4 +++- runOpenVpn.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac18e38..789c96b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" \ diff --git a/runOpenVpn.sh b/runOpenVpn.sh index 7985be7..4ea3f86 100755 --- a/runOpenVpn.sh +++ b/runOpenVpn.sh @@ -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