summaryrefslogtreecommitdiff
path: root/extra/bitlbee/install
blob: b0dd5511dc530b838fb3a0d02622a5029194e65b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
	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
	true
}