Run gravity upgrade on checkout/update

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2023-12-25 05:41:43 +01:00
parent 0066c6fbff
commit 8e8c7ecad2
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD
2 changed files with 7 additions and 1 deletions

View file

@ -2225,6 +2225,11 @@ main() {
# but before starting or restarting the ftl service
disable_resolved_stublistener
# Check if gravity database needs to be upgraded. If so, do it without rebuilding
# gravity altogether. This may be a very long running task needlessly blocking
# the update process.
/opt/pihole/gravity.sh --upgrade
printf " %b Restarting services...\\n" "${INFO}"
# Start services