mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-04 19:50:17 +00:00
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:
parent
4a1f43ca11
commit
f40c3271c9
1 changed files with 3 additions and 2 deletions
|
@ -53,7 +53,8 @@ Usage: $script [OPTIONS]
|
||||||
[ -b ] : NGINX bots directory (default: $BOTS_DIR)
|
[ -b ] : NGINX bots directory (default: $BOTS_DIR)
|
||||||
[ -i ] : Change installer path (default: $INSTALLER)
|
[ -i ] : Change installer path (default: $INSTALLER)
|
||||||
[ -r ] : Change repo url (default: $REPO)
|
[ -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)
|
[ -n ] : Do not send email report (default: $SEND_EMAIL)
|
||||||
[ -v ] : Print blacklist version
|
[ -v ] : Print blacklist version
|
||||||
[ -h ] : this help message
|
[ -h ] : this help message
|
||||||
|
@ -233,7 +234,7 @@ get_options() {
|
||||||
i) INSTALLER=$arg; check_args $opts script $arg ;;
|
i) INSTALLER=$arg; check_args $opts script $arg ;;
|
||||||
r) REPO=$arg; check_args $opts url $arg ;;
|
r) REPO=$arg; check_args $opts url $arg ;;
|
||||||
e) EMAIL=$arg; check_args $opts email $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 ;;
|
n) SEND_EMAIL=N ;;
|
||||||
v) check_depends; check_version ;;
|
v) check_depends; check_version ;;
|
||||||
h) usage ;;
|
h) usage ;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue