mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 10:09:49 +00:00
Update update-ngxblocker - added check_depends to check_version
update-ngxblocker -v didn't work as check_version was called without 'check_depends' and didn't get all binaries / paths.
This commit is contained in:
parent
0c79b5e32c
commit
b980dc5f69
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ check_version() {
|
|||
local remote_ver= remote_date= version= date= file=$CONF_DIR/globalblacklist.conf
|
||||
local tmp=$(mktemp) url=$REPO/conf.d/globalblacklist.conf range="145-345"
|
||||
|
||||
check_depends
|
||||
|
||||
if [ -f $file ]; then
|
||||
# local version
|
||||
version=$(grep "Version:" $file | ${SED_CMD} 's|^.*: V||g')
|
||||
|
|
Loading…
Add table
Reference in a new issue