mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 10:40:36 +00:00
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
This commit is contained in:
parent
26d03bd7f1
commit
6af2dc7f92
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue