mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-04 03:29:57 +00:00
commit
2ffc8bcfcf
1 changed files with 13 additions and 0 deletions
|
@ -119,6 +119,19 @@ check_dirs() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
find_binary() {
|
||||||
|
local x= path= bin=$1 bin_paths='/usr/bin /usr/local/bin /usr/sbin /usr/local/sbin /root/bin /root/.bin'
|
||||||
|
|
||||||
|
for x in $bin_paths; do
|
||||||
|
path="$x/$bin"
|
||||||
|
|
||||||
|
if [ -x $path ]; then
|
||||||
|
echo $path
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
update_paths() {
|
update_paths() {
|
||||||
# variables in nginx include files not currently possible
|
# variables in nginx include files not currently possible
|
||||||
# updates hard coded bots.d path in globalblacklist.conf
|
# updates hard coded bots.d path in globalblacklist.conf
|
||||||
|
|
Loading…
Add table
Reference in a new issue