packaging: Use 0640 (frr:frr) as permissions when running under logrotate

When we do "log file /var/log/frr/something", permissions are set to
0640 (frr:frr), but when the logrotate kicks in, we have 0640 (frr:frrvty).

I believe, we should have a consistent permissions.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
Donatas Abraitis 2022-04-19 16:45:03 +03:00
parent 9bf7cb0b74
commit b5b09eee6d

View File

@ -4,7 +4,7 @@
missingok
compress
rotate 14
create 640 frr frrvty
create 0640 frr frr
postrotate
pid=$(lsof -t -a -c /syslog/ /var/log/frr/* 2>/dev/null)