only create cache if it does not exist

This commit is contained in:
sceox 2020-09-06 11:21:40 -07:00
parent 785ac91678
commit 20bbc771b6

View File

@ -3,7 +3,7 @@
logf='/var/log/nginx/access.log'
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
case $line in (*"POST"*)