summaryrefslogtreecommitdiff
path: root/community/znc/znc.install
blob: 92bc0572a9245744e5f57e81844bb299745d44a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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: