summaryrefslogtreecommitdiff
path: root/libre/clamav/install
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-06-24 12:17:41 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-06-24 12:17:41 -0500
commit08400b9232fa9d80b800abe951403329b4292dcb (patch)
tree806425854d0498dfa9d7c9920ad688bec2d7746a /libre/clamav/install
parent6f1180f35fee220f92044e8f8a0a220ff308b295 (diff)
downloadabslibre-08400b9232fa9d80b800abe951403329b4292dcb.tar.gz
abslibre-08400b9232fa9d80b800abe951403329b4292dcb.tar.bz2
abslibre-08400b9232fa9d80b800abe951403329b4292dcb.zip
clamav: add new package to [libre]
Diffstat (limited to 'libre/clamav/install')
-rw-r--r--libre/clamav/install15
1 files changed, 15 insertions, 0 deletions
diff --git a/libre/clamav/install b/libre/clamav/install
new file mode 100644
index 000000000..1a0653e2a
--- /dev/null
+++ b/libre/clamav/install
@@ -0,0 +1,15 @@
+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() {
+ getent passwd clamav &>/dev/null && userdel clamav >/dev/null
+ getent group clamav &>/dev/null && groupdel clamav >/dev/null
+ return 0
+}