Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Schaper <dan.schaper@pi-hole.net>2021-07-26 22:55:14 +0300
committerDan Schaper <dan.schaper@pi-hole.net>2021-07-26 23:14:52 +0300
commite6ba68513a29fa9bd8dd43e30550b61296844373 (patch)
tree38e3d6c7899b9c543127dc7ae29105e9eceb868f
parent57e34d1762882a1604d8ec125e09b88972c172a4 (diff)
Guard for non-zero return value.fix/logrotate
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
-rwxr-xr-xautomated install/basic-install.sh6
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