only create cache if it does not exist
This commit is contained in:
parent
785ac91678
commit
20bbc771b6
@ -3,7 +3,7 @@
|
|||||||
logf='/var/log/nginx/access.log'
|
logf='/var/log/nginx/access.log'
|
||||||
cache='/tmp/forumspam_cache'
|
cache='/tmp/forumspam_cache'
|
||||||
|
|
||||||
install -m 600 /dev/null $cache
|
test -f $cache || install -m 600 /dev/null $cache
|
||||||
|
|
||||||
tail -F $logf | while read line ; do
|
tail -F $logf | while read line ; do
|
||||||
case $line in (*"POST"*)
|
case $line in (*"POST"*)
|
||||||
|
Reference in New Issue
Block a user