1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-07-24 16:08:10 +00:00

Do not try to upgrade gravity if it does not exist

Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
Christian König 2025-05-05 17:27:53 +02:00
parent 7aaaa49cf0
commit d45003a8ca
No known key found for this signature in database

View File

@ -2295,10 +2295,13 @@ main() {
# but before starting or resttarting 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
if [[ "${fresh_install}" == false ]]; then
# 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.
# Only do this on updates, not on fresh installs as the database does not exit yet
/opt/pihole/gravity.sh --upgrade
fi
printf " %b Restarting services...\\n" "${INFO}"
# Start services