diff options
Diffstat (limited to 'community/znc/znc.install')
-rw-r--r-- | community/znc/znc.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/community/znc/znc.install b/community/znc/znc.install new file mode 100644 index 000000000..92bc0572a --- /dev/null +++ b/community/znc/znc.install @@ -0,0 +1,17 @@ +#/bin/sh + +# arg 1: the new package version +post_install() { + getent group znc >/dev/null || groupadd -g 136 znc + getent passwd znc >/dev/null || useradd -d /var/empty -u 136 -g 136 znc + true +} + +# arg 1: the old package version +post_remove() { + userdel -f znc >/dev/null 2>&1 + groupdel znc >/dev/null 2>&1 + true +} + +# vim:set ts=2 sw=2 ft=sh et: |