Guard for non-zero return value.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper
2021-07-26 12:55:14 -07:00
parent 57e34d1762
commit e6ba68513a

View File

@@ -2042,8 +2042,10 @@ installPihole() {
fi
# 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