diff options
author | root <root@rshg054.dnsready.net> | 2012-03-30 00:01:15 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-30 00:01:15 +0000 |
commit | 263884f95012e159a0be10444ef96bbf56e70545 (patch) | |
tree | a71c47be511babbe957d4f4701b12d0039b09f88 /testing/clamav/install | |
parent | 44ded298ebb49500d321ac79b7d0d8bb4d5058ec (diff) |
Fri Mar 30 00:01:15 UTC 2012
Diffstat (limited to 'testing/clamav/install')
-rw-r--r-- | testing/clamav/install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/clamav/install b/testing/clamav/install new file mode 100644 index 000000000..a2092e815 --- /dev/null +++ b/testing/clamav/install @@ -0,0 +1,14 @@ +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 + + chown -R clamav:clamav /var/lib/clamav + install -o clamav -g clamav -d /run/clamav + install -o clamav -g clamav -d /var/log/clamav +} + +post_remove() { + getent passwd clamav &>/dev/null && userdel clamav >/dev/null + getent group clamav &>/dev/null && groupdel clamav >/dev/null + return 0 +} |