Source: clamav-cn
Section: net
Priority: optional
-Maintainer: Ivan Rako <Ivan.Rako@CARNET.hr>
+Maintainer: Ivan Rako <Ivan.Rako@carnet.hr>
+Uploaders: Zeljko Boros <Zeljko.Boros@carnet.hr>
Build-Depends: debhelper (>= 10)
Standards-Version: 3.9.8
"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