From f40c3271c91bcf37fb2d94e7165eab4c7e49e3ba Mon Sep 17 00:00:00 2001 From: Stuart Cardall Date: Sat, 6 Jan 2018 11:25:22 +0000 Subject: [PATCH] remove sanity checks for -m command line switch allows emails sent with -m to to be sent to system alias addresses. fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/116 --- update-ngxblocker | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update-ngxblocker b/update-ngxblocker index 6f00937c9..b144f852a 100755 --- a/update-ngxblocker +++ b/update-ngxblocker @@ -53,7 +53,8 @@ Usage: $script [OPTIONS] [ -b ] : NGINX bots directory (default: $BOTS_DIR) [ -i ] : Change installer path (default: $INSTALLER) [ -r ] : Change repo url (default: $REPO) - [ -m ] : Change email address (default: $EMAIL) + [ -e ] : Change @email address (default: $EMAIL) + [ -m ] : Change mail (system alias) (default: $EMAIL) [ -n ] : Do not send email report (default: $SEND_EMAIL) [ -v ] : Print blacklist version [ -h ] : this help message @@ -233,7 +234,7 @@ get_options() { i) INSTALLER=$arg; check_args $opts script $arg ;; r) REPO=$arg; check_args $opts url $arg ;; e) EMAIL=$arg; check_args $opts email $arg ;; - m) EMAIL=$arg; check_args $opts email $arg ;; + m) EMAIL=$arg ;; # /etc/aliases no sanity checks n) SEND_EMAIL=N ;; v) check_depends; check_version ;; h) usage ;;