mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
15 lines
491 B
Plaintext
15 lines
491 B
Plaintext
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
|
|
|
|
install -d /var/{log,run}/clamav
|
|
chown clamav:root /var/{log,run}/clamav
|
|
chown -R clamav:clamav /var/lib/clamav
|
|
}
|
|
|
|
post_remove() {
|
|
getent passwd clamav &>/dev/null && userdel clamav >/dev/null
|
|
getent group clamav &>/dev/null && groupdel clamav >/dev/null
|
|
return 0
|
|
}
|