mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-26 20:44:56 +00:00
Not starting if PIA credentials is not set
This commit is contained in:
parent
0e53814b19
commit
faa3972ab4
@ -28,9 +28,7 @@ ADD transmission/runUpdates.sh /etc/transmission-daemon/startPortUpdates.sh
|
|||||||
ADD transmission/down.sh /etc/transmission-daemon/stop.sh
|
ADD transmission/down.sh /etc/transmission-daemon/stop.sh
|
||||||
ADD runOpenVpn.sh /etc/openvpn/start.sh
|
ADD runOpenVpn.sh /etc/openvpn/start.sh
|
||||||
|
|
||||||
ENV PIA_USERNAME=**None** \
|
ENV "TRANSMISSION_ALT_SPEED_DOWN=50" \
|
||||||
PIA_PASSWORD=**None** \
|
|
||||||
"TRANSMISSION_ALT_SPEED_DOWN=50" \
|
|
||||||
"TRANSMISSION_ALT_SPEED_ENABLED=false" \
|
"TRANSMISSION_ALT_SPEED_ENABLED=false" \
|
||||||
"TRANSMISSION_ALT_SPEED_TIME_BEGIN=540" \
|
"TRANSMISSION_ALT_SPEED_TIME_BEGIN=540" \
|
||||||
"TRANSMISSION_ALT_SPEED_TIME_DAY=127" \
|
"TRANSMISSION_ALT_SPEED_TIME_DAY=127" \
|
||||||
|
@ -24,14 +24,14 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# add PIA user/pass
|
# add PIA user/pass
|
||||||
if [ "$PIA_USERNAME" != "**None**" ];
|
if [ -z "$PIA_USERNAME" ] || [ -z "$PIA_PASSWORD" ] ; then
|
||||||
then
|
echo "PIA credentials not set. Exiting."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
echo "Setting PIA credentials..."
|
echo "Setting PIA credentials..."
|
||||||
mkdir -p /config
|
mkdir -p /config
|
||||||
echo $PIA_USERNAME > /config/pia-credentials.txt
|
echo $PIA_USERNAME > /config/pia-credentials.txt
|
||||||
echo $PIA_PASSWORD >> /config/pia-credentials.txt
|
echo $PIA_PASSWORD >> /config/pia-credentials.txt
|
||||||
else
|
|
||||||
echo "Not setting PIA credentials."
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dockerize \
|
dockerize \
|
||||||
|
Loading…
Reference in New Issue
Block a user