automatically set tail -F or -f by checking uname

This commit is contained in:
sceox 2021-12-27 15:24:39 -08:00
parent df0f552ef2
commit 4a28125ee2

View File

@ -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