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
Change OS Detection in debug script #3434
Conversation
7db9cbf
to
3cca306
Compare
From you example
Wording doesn't make sense if version > supported version |
The intention of this is not to say "Version 9 and up are supported", but rather "only version 9 is supported", hence it fails the check when the detected version is Obviously in real life we support Debian 10, but this is just an demonstration of what the output would look like if the detected version is not listed. edit: Never mind, I think I misunderstood what you wrote :) double-edit: I've updated the screenshots on the OP |
Better but not perfect ;-) |
That's not too bad an idea. I'll have a think on it later |
I may change up some of the logic in this PR, actually, based on #3441 |
…ript Signed-off-by: Adam Warner <me@adamwarner.co.uk>
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pi-hole-5-1-released/35577/1 |
By submitting this pull request, I confirm the following:
git rebase
)What does this PR aim to accomplish?:
Currently the supported/unsupported OS detection is based on the distro name being one of 5 set values, this is fine, but then we also need to check further. For example Raspbian <9 is not supported.
This PR adds that check. I'd like to get a similar output into the installer if it fails, however I am starting to think that maybe the installer should prompt user to run and read the debug log if an update fails. Though obviously that won't necessarily work on a fresh install.
Examples using a Debian 10 (Buster) system:
supportedos.txt
contains:Debug output:
supportedos.txt
contains:Debug Output:
supportedos.txt
contains:Debug Output: