From 6af2dc7f92699cb216d25fdd55d3442adadf79ad Mon Sep 17 00:00:00 2001 From: Stuart Cardall Date: Tue, 19 Sep 2017 22:31:54 +0000 Subject: [PATCH] update-ngxblocker: detect /bin/mail in centos * also detect /bin/mail in centos closes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/97 --- update-ngxblocker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-ngxblocker b/update-ngxblocker index 186a513d7..b3869e5da 100755 --- a/update-ngxblocker +++ b/update-ngxblocker @@ -194,8 +194,8 @@ check_args() { } check_mail_depends() { - if [ ! -f /usr/bin/mail ]; then # mailx + ssmtp are enough to send emails - printf "${BOLDYELLOW}WARN${RESET}: missing /usr/bin/mail => ${BOLDWHITE}disabling emails${RESET}.\n\n" + if [ ! -f /usr/bin/mail ] && [ ! -f /bin/mail ]; then # mailx + ssmtp are enough to send emails + printf "${BOLDYELLOW}WARN${RESET}: missing mail command => ${BOLDWHITE}disabling emails${RESET}.\n\n" SEND_EMAIL="N" fi }