initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

25
rspamd/rspamd.install Normal file
View File

@@ -0,0 +1,25 @@
post_install() {
if ! getent group rspamd &>/dev/null; then
groupadd rspamd >/dev/null
fi
if ! getent passwd rspamd &>/dev/null; then
useradd -d /var/lib/rspamd -g rspamd -s /bin/nologin rspamd >/dev/null
fi
chown rspamd:rspamd /var/lib/rspamd
chown rspamd:rspamd /var/log/rspamd
chown rspamd:rspamd /etc/rspamd/local.d/maps.d
}
post_upgrade() {
post_install
}
post_remove() {
if getent passwd rspamd &>/dev/null; then
userdel rspamd >/dev/null
fi
if getent group rspamd &>/dev/null; then
groupdel rspamd >/dev/null
fi
}