From 64eb9860ce5d90b9c192caeb518359230a306c63 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Fri, 4 Jun 2021 16:59:02 -0400 Subject: [PATCH] 2021-06-04 Fred Gleason * Corrected file permissions and ownerships for rsyslog in 'debian/postinst'. Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ debian/postinst | 12 ++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7bb7240b..3cedaeba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21862,3 +21862,6 @@ * Cleaned up compile warnings in rdgen(1). 2021-06-03 Fred Gleason * Cleaned up 'unused variable' warnings in 'apis/rivcapi/'. +2021-06-04 Fred Gleason + * Corrected file permissions and ownerships for rsyslog in + 'debian/postinst'. diff --git a/debian/postinst b/debian/postinst index 324d133d..3603a70a 100644 --- a/debian/postinst +++ b/debian/postinst @@ -52,8 +52,16 @@ case "$1" in fi mkdir -p /var/log/rivendell - if test ! -e /etc/rsyslog.d/rivendell.conf ; then - cp /usr/share/rivendell/syslog.conf-sample /etc/rsyslog.d/rivendell.conf + chmod 750 /var/log/rivendell + chown root:syslog /var/log/rivendell + touch /var/log/rivendell/operations + chmod 640 /var/log/rivendell/operations + chown syslog:adm /var/log/rivendell/operations + touch /var/log/rivendell/debug + chmod 640 /var/log/rivendell/debug + chown syslog:adm /var/log/rivendell/debug + if test ! -e /etc/rsyslog.d/10-rivendell.conf ; then + cp /usr/share/rivendell/syslog.conf-sample /etc/rsyslog.d/10-rivendell.conf fi /bin/systemctl restart rsyslog