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
This commit is contained in:
Stuart Cardall 2018-01-06 11:25:22 +00:00
parent 4a1f43ca11
commit f40c3271c9
No known key found for this signature in database
GPG key ID: AEB857F1C891D0C6

View file

@ -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 ;;