2010-12-05 20:09:06 +08:00
|
|
|
post_install() {
|
2011-03-08 21:06:43 +08:00
|
|
|
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
|
2010-12-05 20:09:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
2011-03-08 21:06:43 +08:00
|
|
|
post_install
|
2010-12-05 20:09:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
2011-03-08 21:06:43 +08:00
|
|
|
getent passwd bitlbee &>/dev/null && userdel bitlbee >/dev/null
|
|
|
|
getent group bitlbee &>/dev/null && groupdel bitlbee >/dev/null
|
|
|
|
}
|