diff options
author | fauno <fauno@endefensadelsl.org> | 2016-07-24 13:19:50 -0300 |
---|---|---|
committer | fauno <fauno@endefensadelsl.org> | 2016-07-24 13:19:50 -0300 |
commit | cc88a733db2ca7c8d889664f2ee803175d6aa2e4 (patch) | |
tree | 409c15520b2d06bd2074f42693a63b5059ec8ade /pcr/rspamd/rspamd.install | |
parent | 841c1592eedbf2890909c238b73eb793afb46924 (diff) | |
download | abslibre-cc88a733db2ca7c8d889664f2ee803175d6aa2e4.tar.gz abslibre-cc88a733db2ca7c8d889664f2ee803175d6aa2e4.tar.bz2 abslibre-cc88a733db2ca7c8d889664f2ee803175d6aa2e4.zip |
rspamd: 1.2.8
Diffstat (limited to 'pcr/rspamd/rspamd.install')
-rw-r--r-- | pcr/rspamd/rspamd.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/rspamd/rspamd.install b/pcr/rspamd/rspamd.install new file mode 100644 index 000000000..2261599e8 --- /dev/null +++ b/pcr/rspamd/rspamd.install @@ -0,0 +1,20 @@ +## arg 1: the new package version +post_install() { + if ! getent passwd _rspamd >/dev/null; then + useradd -k /dev/null -r -m -c 'rspam daemon' -d /var/lib/rspamd -s /sbin/nologin _rspamd + passwd -l _rspamd >/dev/null + fi + mkdir -p /var/log/rspamd + mkdir -p /run/rspamd + chown _rspamd:_rspamd /var/log/rspamd + chown _rspamd:_rspamd /run/rspamd +} + +## arg 1: the old package version +post_remove() { + if getent passwd _rspamd >/dev/null; then + userdel _rspamd + fi +} + +# vim:set ts=2 sw=2 et: |