summaryrefslogtreecommitdiff
path: root/extra/clamav/install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/clamav/install')
-rw-r--r--extra/clamav/install5
1 files changed, 5 insertions, 0 deletions
diff --git a/extra/clamav/install b/extra/clamav/install
index 896e187c7..1a0653e2a 100644
--- a/extra/clamav/install
+++ b/extra/clamav/install
@@ -1,6 +1,11 @@
+post_upgrade() {
+ systemd-tmpfiles --create clamav.conf
+}
+
post_install() {
getent group clamav &>/dev/null || groupadd -r -g 64 clamav >/dev/null
getent passwd clamav &>/dev/null || useradd -r -u 64 -g clamav -d /dev/null -s /bin/false -c "Clam AntiVirus" clamav >/dev/null
+ post_upgrade
}
post_remove() {