Commit graph

26 commits

Author SHA1 Message Date
Stuart Cardall
54c6ba7438
add /sbin to binary search paths
* Amazon Linux puts pidof under /sbin

  fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/399
2020-09-06 20:51:57 +00:00
Alexander Leidinger
38281f1185 Add *BSD compatibility (use GNU sed). 2020-02-15 13:46:07 +01:00
Stuart Cardall
6b0ee8b283
add pidof to required depends
Centos may not have sysvinit-tools installed by default. Adds a check
for pidof being available.

Fixes:

https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/321#issuecomment-578514104
2020-01-28 10:23:19 +00:00
danieli
0fe7b296ec add curl dependency check, fixes #311
use the same find_binary() function used in update and setup scripts
2019-09-09 13:48:59 +02:00
Stuart Cardall
fa873a3e20
install to /usr/local/sbin by default
fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/133
2018-02-08 09:56:34 +00:00
Stuart Cardall
a416936b61
change less verbose option to -q
fixes a clash with the script directory setting in install-ngxblocker
2018-02-07 21:38:39 +00:00
Stuart Cardall
ecf4bb0ad2
add option for less verbose logging
* adds -s command line switch to update-ngxblocker / install-ngxblocker
  for less verbose messages to reduce unnecessary cron job logs.

  -s reduces messages to errors only & the Blacklist version number.
2018-01-07 01:25:48 +00:00
Stuart Cardall
a4e9d4dcdc
install-ngxblocker: add set_mode()
* ensure all $SCRIPT_FILES are executable
2017-09-20 13:44:39 +00:00
Mitchell Krog
5956814094
PATCH: Revert to Previous Install, Setup and Update Scripts 2017-09-20 12:56:22 +02:00
Mitchell Krog
0a88e3a38f
Re-Test 2017-09-20 12:15:50 +02:00
Stuart Cardall
88179046f5
install-ngxblocker: print all curl errors
* also print curl errors besides 404 / timeouts
2017-08-26 20:08:54 +00:00
Stuart Cardall
b4e2e23fec
install-ngxblocker: use curl not wget
fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/76

* download_files() now checks for missing & zero size files
* each download retries up to 10 times
* more informative download error messages
2017-08-23 19:39:07 +00:00
Stuart Cardall
93f0f7c65c
install-ngxblocker: add download for $SCRIPT_FILES 2017-07-26 23:49:26 +00:00
Stuart Cardall
d4eb8f93b9
install-ngxblocker / setup-ngxblocker: fix DRY RUN messages
removes --exec from DRY RUN messages as the scripts now use short
command line switches only with getopts.
2017-07-26 15:38:53 +00:00
Stuart Cardall
13a4fbb0d7
install-ngxblocker: add check_depends()
centos 7 does not have wget by default so check depends.
2017-06-07 17:33:27 +00:00
Stuart Cardall
c291b8d0a6
install-ngxblocker: don't use grep -q
grep -q is not portable
2017-04-29 01:42:54 +00:00
Stuart Cardall
4afe3094ea
fix dash shell compatibilities install / setup-ngxblocker
fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/39

also fixes a small spacing bug in setup-ngxblocker => nginx.conf
2017-04-27 19:28:10 +00:00
Stuart Cardall
cce45d487f
fix dash shell compatibility
fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/39
2017-04-27 15:57:39 +00:00
Stuart Cardall
c31b908c4b
fix POSIX shell compatibility
fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/39
2017-04-27 14:00:11 +00:00
Stuart Cardall
f67776d8a9 install-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:53:31 +00:00
Stuart Cardall
a8b0ae8399 install-ngxblocker: 2 small fixes 2017-04-21 22:01:55 +00:00
Stuart Cardall
883bbc7bb5 improve install script
By default the install script makes no changes & prints to stdout the
changes it would make. To actually download the files run with:

install-ngxblocker -x [ or --exec ]

to see the command line options:

install-ngxblocker -h [ or --help ]
2017-04-21 01:30:44 +00:00
Mitchell Krog
81d28c6d43 Version 2.2017.07 - Documentation Updates
PLEASE NOTE CRITICAL CHANGES !!!

3 new include files must exist in your /etc/nginx/bots.d/ folder or Nginx will EMERG and fail reloading due to the missing files.

PLEASE READ UPDATED CONFIGURATION INSTRUCTIONS
2017-04-20 15:34:51 +02:00
Mitchell Krog
62d795580e Fixed typo 2017-04-17 12:44:36 +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