summaryrefslogtreecommitdiff
path: root/community/znc/znc.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-07 02:09:50 -0800
committerroot <root@rshg054.dnsready.net>2012-12-07 02:09:50 -0800
commit7de07e40e2c0c078a35c5092e1f2defb65d1741e (patch)
treebc791b3c1aca7238f6f5e6761930657526005eac /community/znc/znc.install
parent3f0c4efbf72adbd091565fcc39ad1d09c92be5d0 (diff)
Fri Dec 7 02:06:33 PST 2012
Diffstat (limited to 'community/znc/znc.install')
-rw-r--r--community/znc/znc.install17
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: