mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-10 16:43:35 +02:00
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:
12
debian/postinst
vendored
12
debian/postinst
vendored
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user