2021-06-04 Fred Gleason <fredg@paravelsystems.com>

* Corrected file permissions and ownerships for rsyslog in
	'debian/postinst'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-06-04 16:59:02 -04:00
parent 0d0e9f46a7
commit 64eb9860ce
2 changed files with 13 additions and 2 deletions

View File

@ -21862,3 +21862,6 @@
* Cleaned up compile warnings in rdgen(1).
2021-06-03 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up 'unused variable' warnings in 'apis/rivcapi/'.
2021-06-04 Fred Gleason <fredg@paravelsystems.com>
* Corrected file permissions and ownerships for rsyslog in
'debian/postinst'.

12
debian/postinst vendored
View File

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