Guard for logrotate func non-zero return

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2021-07-26 13:22:26 -07:00
parent 18c6ef8aac
commit b1ea60484e
No known key found for this signature in database
GPG key ID: 6055EE2AD4004FC0

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