mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
check if clamav-daemon.socket exist
This commit is contained in:
parent
d9b8330de8
commit
9f16db4431
1 changed files with 3 additions and 2 deletions
|
@ -95,8 +95,9 @@ if [ ! -f "/usr/local/vesta/data/upgrades/change-clamav-socket-v2" ]; then
|
|||
touch /usr/local/vesta/data/upgrades/change-clamav-socket-v2
|
||||
sed -i "s#/var/lib/clamav/clamd.sock#/var/run/clamav/clamd.ctl#g" /etc/clamav/clamd.conf
|
||||
sed -i "s#/var/lib/clamav/clamd.sock#/var/run/clamav/clamd.ctl#g" /etc/exim4/exim4.conf.template
|
||||
sed -i "s#/var/lib/clamav/clamd.sock#/run/clamav/clamd.ctl#g" /lib/systemd/system/clamav-daemon.socket
|
||||
# sed -i "s#=/run/clamav/clamd.ctl#=/var/run/clamav/clamd.ctl#g" /lib/systemd/system/clamav-daemon.socket
|
||||
if [ -f "/lib/systemd/system/clamav-daemon.socket" ]; then
|
||||
sed -i "s#/var/lib/clamav/clamd.sock#/run/clamav/clamd.ctl#g" /lib/systemd/system/clamav-daemon.socket
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
systemctl restart clamav-daemon
|
||||
systemctl restart clamav-freshclam
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue