saving uncommitted changes in /etc prior to dnf run

This commit is contained in:
2022-05-18 15:21:28 +03:00
parent 7a81b95d4c
commit 4f417c73dd
2 changed files with 8 additions and 0 deletions

View File

@@ -268,10 +268,14 @@ maybe chmod 0644 'clamd.conf.rpmnew'
maybe chown 'amavis' 'clamd.conf.rpmsave' maybe chown 'amavis' 'clamd.conf.rpmsave'
maybe chgrp 'amavis' 'clamd.conf.rpmsave' maybe chgrp 'amavis' 'clamd.conf.rpmsave'
maybe chmod 0644 '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 chmod 0755 'clamd.d'
maybe chown 'amavis' 'clamd.d/amavisd.conf' maybe chown 'amavis' 'clamd.d/amavisd.conf'
maybe chgrp 'amavis' 'clamd.d/amavisd.conf' maybe chgrp 'amavis' 'clamd.d/amavisd.conf'
maybe chmod 0644 '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 chmod 0644 'clamd.d/scan.conf'
maybe chown 'amavis' 'clamd.d/scan.conf.rpmnew' maybe chown 'amavis' 'clamd.d/scan.conf.rpmnew'
maybe chgrp 'amavis' 'clamd.d/scan.conf.rpmnew' maybe chgrp 'amavis' 'clamd.d/scan.conf.rpmnew'

View File

@@ -16,5 +16,9 @@ iptables -t filter -A FORWARD -i docker0 -o docker0 -j ACCEPT
echo "[DOCKER] Done." echo "[DOCKER] Done."
# restart docker
systemctl restart docker >/dev/null 2>&1
# restart fail2ban after CSF update (otherwise fail2ban rules won't work) # restart fail2ban after CSF update (otherwise fail2ban rules won't work)
systemctl restart fail2ban >/dev/null 2>&1 systemctl restart fail2ban >/dev/null 2>&1