diff options
Diffstat (limited to 'extra/bitlbee/install')
-rw-r--r-- | extra/bitlbee/install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/bitlbee/install b/extra/bitlbee/install new file mode 100644 index 000000000..0e1caa93f --- /dev/null +++ b/extra/bitlbee/install @@ -0,0 +1,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 +} |