Commit graph

59 commits

Author SHA1 Message Date
Mitchell Krog
b5fc344420 Updated Examples of Cron Jobs 2017-06-14 17:19:15 +02:00
Mitchell Krog
fd7e4ee264 Updated examples of command line switches and cron jobs. 2017-06-14 17:18:38 +02:00
Mitchell Krog
9fc58196f7 Minor changes to email body messages when updated / not updated 2017-06-13 11:20:57 +02:00
Stuart Cardall
e6af6d7fb6
update-ngxblocker: improved update function / check depends
fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/51#issuecomment-306734698

fixes a89de5831a (commitcomment-22363496)

globalblacklist.conf is only downloaded if it is a new version.

the version check is limited to 200 bytes of data rate limited @ 5kb.
(this adds curl as a dependency).

adds check_depends() as wget is not installed by default on centos 7
& curl is not installed by default on ubuntu or alpine linux.

adds check_mail_depends() & disables sending an email report if
/usr/bin/mail is not found.

adds a notification for reloading nginx as systemd only writes a
notice to syslog.

adds a note for logging cron to syslog.

adds some ANSI colour to the output.
2017-06-07 17:33:03 +00:00
Stuart Cardall
312ee8bdb5 update-ngxblocker: use getopts not getopt
long options for the command line are removed. getopt is replaced with
the newer getopts (which is compatible with Debian's DASH Shell)

* fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/35

* adds sanity checks for user command line switches

* adds -v command line option to print blacklist version
2017-04-26 15:56:40 +00:00
Stuart Cardall
b9198769b4 update-ngxblocker: add command line switches
* adds help menu & command line switches
* to view options run:

update-ngxblocker -h
2017-04-22 17:58:29 +00:00
Mitchell Krog
8960bc6de6 Update Comments Regarding Required Include Files 2017-04-20 16:56:04 +02:00
Mitchell Krog
c31997d4f6 Readme and Configuration Updates
Changes to reflect new names for install, setup and update script.
Happy Easter 🐰
2017-04-16 11:29:55 +02:00
Mitchell Krog UB1
ec94393e27 Change install, setup and update script names for Consistency 2017-04-16 10:56:03 +02:00