blob: 0e1caa93f6ab1bee3d2ed0207f2c2304b60b4531 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
post_install() {
echo '==> Bitlbee can run through xinetd or as a daemon for now.'
getent group bitlbee &>/dev/null || groupadd -r -g 65 bitlbee >/dev/null
getent passwd bitlbee &>/dev/null || useradd -r -u 65 -g bitlbee -d /var/lib/bitlbee -s /bin/false -c bitlbee bitlbee >/dev/null
}
post_upgrade() {
post_install
}
post_remove() {
getent passwd bitlbee &>/dev/null && userdel bitlbee >/dev/null
getent group bitlbee &>/dev/null && groupdel bitlbee >/dev/null
}
|