From 7d7c18c307b2c6683e7738e2e61ba68d1dd9ea1c Mon Sep 17 00:00:00 2001 From: Zeljko Boros Date: Sun, 9 May 2021 00:25:41 +0200 Subject: [PATCH 1/1] =?utf8?q?Vra=C4=87anje=20PID-a,=20brisanje=20SafeBrowsi?= =?utf8?q?ng=20opcije=20iz=20freshclam.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- debian/control | 3 ++- debian/postinst | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 25eb739..8de9529 100644 --- a/debian/control +++ b/debian/control @@ -1,7 +1,8 @@ Source: clamav-cn Section: net Priority: optional -Maintainer: Ivan Rako +Maintainer: Ivan Rako +Uploaders: Zeljko Boros Build-Depends: debhelper (>= 10) Standards-Version: 3.9.8 diff --git a/debian/postinst b/debian/postinst index 8104833..a92f09d 100755 --- a/debian/postinst +++ b/debian/postinst @@ -13,6 +13,24 @@ cp_check_and_sed "^AllowSupplementaryGroups" \ "s/^AllowSupplementaryGroups/#AllowSupplementaryGroups/g" \ /etc/clamav/clamd.conf && restart="yes" || true +# obsolete option SafeBrowsing https://blog.clamav.net/2021/04/clamav-01032-security-patch-release.html +cp_check_and_sed "^SafeBrowsing" \ + "s/^SafeBrowsing/#SafeBrowsing/g" \ + /etc/clamav/freshclam.conf && restart="yes" || true + +# dodaj staru opciju PidFIle kako bi monit pouzdano radio +cp_check_and_sed "^#PidFile" \ + "s,^#PidFile /var/run/clamav/clamd.pid,PidFile /var/run/clamav/clamd.pid,g" \ + /etc/clamav/clamd.conf && restart="yes" || true +# za svaki slučaj ako je neka druga putanja +cp_check_and_sed "^PidFile" \ + "s,^PidFile.*,PidFile /var/run/clamav/clamd.pid,g" \ + /etc/clamav/clamd.conf && restart="yes" || true + +if [ -d /var/run/clamav ]; then + chown -R clamav:clamav /var/run/clamav +fi + if [ -d /run/clamav ]; then chown -R clamav:clamav /run/clamav fi -- 1.7.10.4