-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Updates to reflect FTL's native capability of reading the FTLCONF_ env vars #1460
Conversation
Signed-off-by: Adam Warner <[email protected]>
e682c94
to
ed4963f
Compare
Forgot the tests. PR now ready |
d592b4e
to
314ed3c
Compare
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.
L70 of the README: add port 443
Reading over that section again, I might even just drop most of it. |
4a459f5
to
98049d1
Compare
It's not the The reported issue is
This comes from Line 120 in 314ed3c
Which triggers Those lines were just added recently by pi-hole/pi-hole#5444. So the test are failing rightfully, because on docker, we don't copy (No idea why |
My previous assumption was wrong, but lead me to find out what really went wrong. It's the check for a set password using docker-pi-hole/src/bash_functions.sh Line 75 in 98049d1
It only checks, if there is an response at all. This is the case if FTL returns the password, but also on errors. The underlying issue here is: the test pulled the wrong architecture, because I forked the repo and fixed the tests: https://github.com/yubiuser/docker-pi-hole/actions/runs/6597244291 I think you should re-add the tests, they helped to identify this bug.
|
98049d1
to
ef0d516
Compare
Thanks for looking at that @yubiuser - reverted the commit removing the arm tests and added in the additional commit from your fork |
ef0d516
to
a66c701
Compare
- Update readme to take into accounts changes to FTLs environment variable handling - shell/md linting, tidy away some code that is no longer needed Signed-off-by: Adam Warner <[email protected]>
…ssword Signed-off-by: Adam Warner <[email protected]>
Co-authored-by: yubiuser <[email protected]> Signed-off-by: Adam Warner <[email protected]>
a66c701
to
b57e9c6
Compare
Signed-off-by: Adam Warner <[email protected]>
Co-authored-by: yubiuser <[email protected]> Signed-off-by: Adam Warner <[email protected]>
b57e9c6
to
5c7ff5c
Compare
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.
Seems to work as expected
What does this PR aim to accomplish?:
Now that pi-hole/FTL#1679 (review) has been merged, we no longer need to parse the environment variables in the startup script (with the exception of
FTLCONF_webserver_api_password
, which we will set to a random value if none is specified) and totally negates the need for the changes made in #1456 to add special cases for FTL config names with_
in themPassword scenarios:
Env var set (With or without the addition of
FTLCONF_ENV_ONLY
)No env var set and
pwhash
empty in config fileNo env var set and
pwhash
has a value in config fileNo env var set, but
FTLCONF_ENV_ONLY
set totrue
We also check the value of
FTLCONF_dns_upstreams
for;
and replace them with,
to ensure compatibility with FTL's environment variable parsing. A notice will be displayed to the user in this case.Lastly some formatting/old code removal has also been applied
By submitting this pull request, I confirm the following:
git rebase
)