automatically set tail -F or -f by checking uname
This commit is contained in:
parent
df0f552ef2
commit
4a28125ee2
@ -2,7 +2,11 @@
|
||||
|
||||
logf='/var/log/nginx/access.log'
|
||||
cache='/tmp/forumspam_cache'
|
||||
tail_opts='-F' # set to `-f` on OpenBSD!
|
||||
|
||||
case `uname` in
|
||||
(*"BSD"*) tail_opts='-f';;
|
||||
(*) tail_opts='-F';;
|
||||
esac
|
||||
|
||||
test -f $cache || install -m 600 /dev/null $cache
|
||||
|
||||
|
Reference in New Issue
Block a user