mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 10:40:36 +00:00
* remove whitespace
This commit is contained in:
parent
2a3183d017
commit
5c21edde6d
1 changed files with 3 additions and 3 deletions
|
@ -261,12 +261,12 @@ send_email() {
|
||||||
|
|
||||||
send_email_via_mailgun() {
|
send_email_via_mailgun() {
|
||||||
local report= subject= endpoint="https://api.mailgun.net/v3/$MG_DOMAIN/messages"
|
local report= subject= endpoint="https://api.mailgun.net/v3/$MG_DOMAIN/messages"
|
||||||
|
|
||||||
echo "Mailgunning report to: ${BOLDWHITE}$EMAIL${RESET}\n\n";
|
echo "Mailgunning report to: ${BOLDWHITE}$EMAIL${RESET}\n\n";
|
||||||
sed -i 's/\x1b\[[0-9;]*m//g' $EMAIL_REPORT
|
sed -i 's/\x1b\[[0-9;]*m//g' $EMAIL_REPORT
|
||||||
report="$(cat $EMAIL_REPORT)"
|
report="$(cat $EMAIL_REPORT)"
|
||||||
subject='Nginx Bad Bot Blocker Updated'
|
subject='Nginx Bad Bot Blocker Updated'
|
||||||
|
|
||||||
curl -s --user api:$MG_API_KEY $endpoint -F from='botblocker<'$MG_FROM'>' -F to=$EMAIL -F subject="$subject" -F text="$report"
|
curl -s --user api:$MG_API_KEY $endpoint -F from='botblocker<'$MG_FROM'>' -F to=$EMAIL -F subject="$subject" -F text="$report"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -291,7 +291,7 @@ get_options() {
|
||||||
r) REPO=$arg; check_args $opts url $arg ;;
|
r) REPO=$arg; check_args $opts url $arg ;;
|
||||||
e) EMAIL=$arg; SEND_EMAIL=Y; check_args $opts email $arg ;;
|
e) EMAIL=$arg; SEND_EMAIL=Y; check_args $opts email $arg ;;
|
||||||
g) EMAIL=$arg; SEND_MG_EMAIL=Y; check_args $opts email $arg ;;
|
g) EMAIL=$arg; SEND_MG_EMAIL=Y; check_args $opts email $arg ;;
|
||||||
a) MG_API_KEY=$arg;;
|
a) MG_API_KEY=$arg;;
|
||||||
d) MG_DOMAIN=$arg;;
|
d) MG_DOMAIN=$arg;;
|
||||||
f) MG_FROM=$arg;;
|
f) MG_FROM=$arg;;
|
||||||
m) EMAIL=$arg; SEND_EMAIL=Y ;; # /etc/aliases no sanity checks
|
m) EMAIL=$arg; SEND_EMAIL=Y ;; # /etc/aliases no sanity checks
|
||||||
|
|
Loading…
Add table
Reference in a new issue