mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
Fix to generate-blacklist not writing date into globalblacklist.conf
This commit is contained in:
parent
0ca3505f6d
commit
35fa479055
1 changed files with 3 additions and 3 deletions
|
@ -36,9 +36,9 @@ MONTH=$(date +"%m")
|
|||
MY_GIT_TAG=V3.$YEAR.$MONTH.$TRAVIS_BUILD_NUMBER
|
||||
BAD_REFERRERS=$(wc -l < $TRAVIS_BUILD_DIR/_generator_lists/bad-referrers.list)
|
||||
BAD_BOTS=$(wc -l < $TRAVIS_BUILD_DIR/_generator_lists/bad-user-agents.list)
|
||||
_now="$(date)"
|
||||
#_now="$(date)"
|
||||
# To get DATE output into uppercase format (if needed)
|
||||
#_now=$(date | tr -s '[:lower:]' '[:upper:]')
|
||||
_NOW=$(date | tr -s '[:lower:]' '[:upper:]')
|
||||
|
||||
|
||||
# *************************************
|
||||
|
@ -388,7 +388,7 @@ rm $_inputdb10
|
|||
# PRINT VERSION, SCRIPT RUNTIME and UPDATE INFORMATION INTO GLOBALBLACKLIST FILES
|
||||
# *******************************************************************************
|
||||
|
||||
printf '%s\n%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s\n%s\n' "$_startmarker" "###################################################" "### Version: " "$MY_GIT_TAG" "### Updated: " "$_now" "### Bad Referrer Count: " "$BAD_REFERRERS" "### Bad Bot Count: " "$BAD_BOTS" "###################################################" "$_endmarker" >> $_tmpnginxA
|
||||
printf '%s\n%s\n%s%s\n%s%s\n%s%s\n%s%s\n%s\n%s\n' "$_startmarker" "###################################################" "### Version: " "$MY_GIT_TAG" "### Updated: " "$_NOW" "### Bad Referrer Count: " "$BAD_REFERRERS" "### Bad Bot Count: " "$BAD_BOTS" "###################################################" "$_endmarker" >> $_tmpnginxA
|
||||
mv $_tmpnginxA $_inputdbA
|
||||
ed -s $_inputdbA<<\IN
|
||||
1,/### VERSION INFORMATION #/d
|
||||
|
|
Loading…
Add table
Reference in a new issue