desktop/clamav/clamav.install

17 lines
470 B
Plaintext
Raw Normal View History

2014-07-16 02:23:29 +08:00
post_upgrade() {
systemd-tmpfiles --create clamav.conf
}
post_install() {
2014-07-16 02:23:29 +08:00
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
2014-07-16 02:23:29 +08:00
post_upgrade
}
post_remove() {
2014-07-16 02:23:29 +08:00
getent passwd clamav &>/dev/null && userdel clamav >/dev/null
getent group clamav &>/dev/null && groupdel clamav >/dev/null
return 0
}