summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-04-20 13:45:08 +0200
committerGitHub <noreply@github.com>2022-04-20 13:45:08 +0200
commit83bbdb5e145b84000ceb34ed80873009d1c5ba2c (patch)
treea84b65d89c403c64bea418fd8282791f4fced4e4 /debian
parentMerge pull request #11023 from AbhishekNR/igmp_flag (diff)
parentpackaging: Use 0640 (frr:frr) as permissions when running under logrotate (diff)
downloadfrr-83bbdb5e145b84000ceb34ed80873009d1c5ba2c.tar.xz
frr-83bbdb5e145b84000ceb34ed80873009d1c5ba2c.zip
Merge pull request #11052 from opensourcerouting/fix/log_dir_permissions
packaging: A couple of fixes for /var/log/frr
Diffstat (limited to 'debian')
-rw-r--r--debian/frr.logrotate2
-rw-r--r--debian/frr.postinst2
2 files changed, 2 insertions, 2 deletions
diff --git a/debian/frr.logrotate b/debian/frr.logrotate
index ea09c1bf8..1e0e726cb 100644
--- a/debian/frr.logrotate
+++ b/debian/frr.logrotate
@@ -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)
diff --git a/debian/frr.postinst b/debian/frr.postinst
index 505ff8eaf..4e23cd3ce 100644
--- a/debian/frr.postinst
+++ b/debian/frr.postinst
@@ -16,7 +16,7 @@ adduser \
frr
usermod -a -G frrvty frr
-mkdir -p /var/log/frr
+mkdir -m 0755 -p /var/log/frr
mkdir -p /etc/frr