From 4f417c73dd061eeadb1b0b0cd50738aa0ec9fb75 Mon Sep 17 00:00:00 2001 From: bms8197 Date: Wed, 18 May 2022 15:21:28 +0300 Subject: [PATCH] saving uncommitted changes in /etc prior to dnf run --- .etckeeper | 4 ++++ csf/csfpost.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.etckeeper b/.etckeeper index 93bcf43..f6a2b62 100755 --- a/.etckeeper +++ b/.etckeeper @@ -268,10 +268,14 @@ maybe chmod 0644 'clamd.conf.rpmnew' maybe chown 'amavis' 'clamd.conf.rpmsave' maybe chgrp 'amavis' 'clamd.conf.rpmsave' maybe chmod 0644 'clamd.conf.rpmsave' +maybe chown 'amavis' 'clamd.d' +maybe chgrp 'amavis' 'clamd.d' maybe chmod 0755 'clamd.d' maybe chown 'amavis' 'clamd.d/amavisd.conf' maybe chgrp 'amavis' 'clamd.d/amavisd.conf' maybe chmod 0644 'clamd.d/amavisd.conf' +maybe chown 'amavis' 'clamd.d/scan.conf' +maybe chgrp 'amavis' 'clamd.d/scan.conf' maybe chmod 0644 'clamd.d/scan.conf' maybe chown 'amavis' 'clamd.d/scan.conf.rpmnew' maybe chgrp 'amavis' 'clamd.d/scan.conf.rpmnew' diff --git a/csf/csfpost.sh b/csf/csfpost.sh index 49002b0..9e81fc5 100755 --- a/csf/csfpost.sh +++ b/csf/csfpost.sh @@ -16,5 +16,9 @@ iptables -t filter -A FORWARD -i docker0 -o docker0 -j ACCEPT echo "[DOCKER] Done." +# restart docker +systemctl restart docker >/dev/null 2>&1 + # restart fail2ban after CSF update (otherwise fail2ban rules won't work) systemctl restart fail2ban >/dev/null 2>&1 +