-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Control PIA and Transmission from env vars #10
Conversation
Ok I think this is ready to go now. Phew, sorry for all the clutter. I messed up the rebase/merging. But everything should be good now, and it's all condensed into one commit 👍 |
bbe57d0
to
76935c0
Compare
echo $PIA_USERNAME > /config/pia-credentials.txt | ||
echo $PIA_PASSWORD >> /config/pia-credentials.txt | ||
else | ||
echo "Not setting PIA credentials." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably not allow startup without credentials. Thinking exit here...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in faa3972
Left some notes, I'm gonna do a little refactor. But good, merging now! |
Control PIA and Transmission from env vars
@@ -36,9 +28,81 @@ 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 PIA_USERNAME=**None** \ | |||
PIA_PASSWORD=**None** \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also set these to a default bogus value. You can remove these as well if you'd like.
Also reducing size of Docker image.