-
-
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
if skipgravityonboot set, check db version. #1402
Conversation
Thanks, I'll take a look at this later on. In the meantime, could you rebase on |
dc48e8f
to
8bdc3fa
Compare
@edgd1er , looks like you rebased on the wrong branch :) |
I have now merged the UID/GID branch in, so please rebase on development-v6 once more (I can do this for you if you need help!) |
5a4f8f8
to
e497cb9
Compare
I've rebased and signed off. it should be ok, now |
e497cb9
to
53da738
Compare
Signed-off-by: edgd1er <[email protected]>
53da738
to
7cf55cb
Compare
Signed-off-by: Adam Warner <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
during pihole -g version is checked and db updated if needed.
Description
At boot time either run pihole -g or check and upgrade database structure if needed.
Motivation and Context
Updating everyday or at every start lists may be of little use and harsh on lists servers.
Allowing to bypass update at boot time, speed up the start and avoid traffic on lists servers.
Some lists are on github servers, too many accesses may trigger ban rules.
Fix #1398
When SKIPGRAVITYONBOOT is not set (default), pihole -g runs at boot time.
it checks database's version and upgrade it if needed.
SKIPGRAVITYONBOOT allows to bypass the "pihole -g" step, hence database version is not checked anymore, lists are not updated.
Depending on the last update, incorrect version will cause many errors in the admin website.
How Has This Been Tested?
I copied v5 databases to v6 container's volumes, an checked that database structure was updated and lists were not.
Types of changes
Checklist: