saving uncommitted changes in /etc prior to dnf run
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user