diff options
author | fauno <fauno@endefensadelsl.org> | 2017-04-26 13:56:17 -0300 |
---|---|---|
committer | fauno <fauno@endefensadelsl.org> | 2017-04-26 13:56:17 -0300 |
commit | cf761c6b82f3d8ebc258b305ca5d7215b5108a7a (patch) | |
tree | 4e0671576c484969e91e0e42a5f53b0529640243 /pcr/rspamd/rspamd.install | |
parent | 71943d0d5fb2d29748a228c11f67d49cc8c39b91 (diff) |
rspamd
Diffstat (limited to 'pcr/rspamd/rspamd.install')
-rw-r--r-- | pcr/rspamd/rspamd.install | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/pcr/rspamd/rspamd.install b/pcr/rspamd/rspamd.install index 2261599e8..705c21dbe 100644 --- a/pcr/rspamd/rspamd.install +++ b/pcr/rspamd/rspamd.install @@ -1,20 +1,12 @@ ## 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 + systemd-sysusers rspamd.conf + systemd-tmpfiles --create rspamd.conf } ## arg 1: the old package version post_remove() { - if getent passwd _rspamd >/dev/null; then - userdel _rspamd - fi + true } -# vim:set ts=2 sw=2 et: +# vim: set tabstop=4:softtabstop=4:shiftwidth=4:noexpandtab |