diff options
author | Dan Schaper <dan.schaper@pi-hole.net> | 2021-07-26 22:55:14 +0300 |
---|---|---|
committer | Dan Schaper <dan.schaper@pi-hole.net> | 2021-07-26 23:14:52 +0300 |
commit | e6ba68513a29fa9bd8dd43e30550b61296844373 (patch) | |
tree | 38e3d6c7899b9c543127dc7ae29105e9eceb868f | |
parent | 57e34d1762882a1604d8ec125e09b88972c172a4 (diff) |
Guard for non-zero return value.fix/logrotate
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
-rwxr-xr-x | automated install/basic-install.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 4212159e..059870ab 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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 |