mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
28 lines
473 B
Bash
28 lines
473 B
Bash
post_install() {
|
|
echo "-> Bitlbee can run through xinetd or as a daemon for now."
|
|
if [ ! `grep bitlbee /etc/group` ]; then
|
|
groupadd -g 65 bitlbee &>/dev/null;
|
|
fi
|
|
|
|
id bitlbee &>/dev/null || \
|
|
useradd -u 65 -g bitlbee -d /var/lib/bitlbee -s /bin/false bitlbee
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install $1
|
|
}
|
|
|
|
pre_remove() {
|
|
userdel bitlbee &> /dev/null
|
|
groupdel bitlbee &> /dev/null
|
|
}
|
|
|
|
post_remove() {
|
|
/bin/true
|
|
}
|
|
|
|
op=$1
|
|
shift
|
|
|
|
$op $*
|
|
# vim: ts=2 sw=2 et ft=sh
|