saving uncommitted changes in /etc prior to dnf run

This commit is contained in:
2021-09-26 22:25:35 +03:00
parent a373247ee2
commit e8d32c9c27
3 changed files with 12 additions and 1 deletions

View File

@@ -4544,6 +4544,7 @@ maybe chmod 0644 'rspamd/worker-normal.inc'
maybe chmod 0644 'rspamd/worker-proxy.inc'
maybe chmod 0644 'rsyslog.conf'
maybe chmod 0755 'rsyslog.d'
maybe chmod 0640 'rsyslog.d/00-backup.conf'
maybe chmod 0644 'rsyslog.d/ignore-systemd-session-slice.conf'
maybe chown 'rundeck' 'rundeck'
maybe chgrp 'rundeck' 'rundeck'

10
rsyslog.d/00-backup.conf Normal file
View File

@@ -0,0 +1,10 @@
# enable log reception from remote hosts
$ModLoad imudp
$UDPServerRun 514
$AllowedSender UDP, 192.168.1.4/32
$template RemoteStore, "/var/log/%HOSTNAME%.log"
:source,isequal,"backup",-?RemoteStore
& stop