summaryrefslogtreecommitdiff
path: root/nonprism/bitlbee-libre-nonprism/bitlbee.install
blob: aa5a81a70ab088d437c095502cf9c93d69cbf6d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
	systemd-tmpfiles --create bitlbee.conf
}

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
}