Reverting clamav.sock

This commit is contained in:
myvesta 2020-07-20 14:19:40 +02:00 committed by GitHub
commit 715262f162
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,8 +101,8 @@ if [ -f "/lib/systemd/system/clamav-daemon.service" ]; then
fi
# reverting to default clamd sock
if [ ! -f "/usr/local/vesta/data/upgrades/change-clamav-socket-v2" ]; then
touch /usr/local/vesta/data/upgrades/change-clamav-socket-v2
if [ ! -f "/usr/local/vesta/data/upgrades/change-clamav-socket-v3" ]; then
touch /usr/local/vesta/data/upgrades/change-clamav-socket-v3
if [ -f "/etc/clamav/clamd.conf" ]; then
sed -i "s#/var/lib/clamav/clamd.sock#/var/run/clamav/clamd.ctl#g" /etc/clamav/clamd.conf
if [ -f "/etc/exim4/exim4.conf.template" ]; then