+clamav-cn (4:0.99.2~cn1) stable; urgency=medium
+
+ * Provjera o postojanju direktorija prije naredbe chown u postinstu
+
+ -- Ivan Rako <Ivan.Rako@CARNet.hr> Tue, 28 Feb 2017 16:37:12 +0100
+
clamav-cn (4:0.99.2~cn0) stable; urgency=medium
* Ovisnost o novoj verziji clamav-unofficial-sigs
"s/^AllowSupplementaryGroups/#AllowSupplementaryGroups/g" \
/etc/clamav/clamd.conf && restart="yes" || true
-chown -R clamav:clamav /var/run/clamav /var/lib/clamav /var/log/clamav
+if [ -d /run/clamav ]; then
+ chown -R clamav:clamav /run/clamav
+fi
+
+if [ -d /var/lib/clamav ]; then
+ chown -R clamav:clamav /var/lib/clamav
+fi
+
+if [ -d /var/log/clamav ]; then
+ chown -R clamav:clamav /var/log/clamav
+fi
# dodaj korisnika clamav u grupu amavis (ako postoji...)
getent group amavis > /dev/null && usermod -G amavis clamav && restart="yes"