1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

Merge pull request #4247 from pi-hole/tweak/installLogrotateFail

Remove extra failure display when installation of logrotate file is skipped because the file already exists
This commit is contained in:
DL6ER 2021-07-30 07:44:34 +02:00 committed by GitHub
commit 9ae6b40818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2042,11 +2042,10 @@ installPihole() {
fi fi
# Install the cron file # Install the cron file
installCron installCron
# Install the logrotate file # Install the logrotate file
if ! installLogrotate; then installLogrotate || true
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 # Check if dnsmasq is present. If so, disable it and back up any possible
# config file # config file
disable_dnsmasq disable_dnsmasq