1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

Merge pull request #4242 from pi-hole/fix/guard_logrotate

Guard for logrotate func non-zero return
This commit is contained in:
DL6ER 2021-07-27 19:43:52 +02:00 committed by GitHub
commit 7f4bb24fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2043,7 +2043,10 @@ installPihole() {
# Install the cron file
installCron
# Install the logrotate file
installLogrotate
if ! installLogrotate; then
printf " %b Failure in logrotate installation function.\\n" "${CROSS}"
# This isn't fatal, no need to exit.
fi
# Check if dnsmasq is present. If so, disable it and back up any possible
# config file
disable_dnsmasq