From 3986d4ec15278bbd3a9f28b8f38b49e8a3294ccf Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Fri, 15 May 2020 19:31:22 +0200 Subject: [PATCH] clamav sock in installer --- install/vst-install-debian.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/install/vst-install-debian.sh b/install/vst-install-debian.sh index d6ea58dc..e29e1d84 100644 --- a/install/vst-install-debian.sh +++ b/install/vst-install-debian.sh @@ -1211,8 +1211,6 @@ if [ "$clamd" = 'yes' ]; then gpasswd -a clamav Debian-exim cp -f $vestacp/clamav/clamd.conf /etc/clamav/ mkdir -p /var/lib/clamav - touch /var/lib/clamav/clamd.sock - chown clamav:clamav /var/lib/clamav/clamd.sock /usr/bin/freshclam update-rc.d clamav-daemon defaults if [ ! -d "/var/run/clamav" ]; then @@ -1222,8 +1220,7 @@ if [ "$clamd" = 'yes' ]; then if [ -e "/lib/systemd/system/clamav-daemon.service" ]; then exec_pre1='ExecStartPre=-/bin/mkdir -p /var/run/clamav' exec_pre2='ExecStartPre=-/bin/chown -R clamav:clamav /var/run/clamav' - sed -i "s|\[Service\]/|[Service]\n$exec_pre1\n$exec_pre2|g" \ - /lib/systemd/system/clamav-daemon.service + sed -i "s|\[Service\]/|[Service]\n$exec_pre1\n$exec_pre2|g" /lib/systemd/system/clamav-daemon.service systemctl daemon-reload fi service clamav-daemon start