postinst is in bip 0.8.9-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #!/bin/sh
set -e
BIPUSER=bip
BIPGROUP=bip
BIPHOME=/var/lib/bip
chgrp "$BIPUSER" "$BIPHOME" 2>/dev/null || addgroup --system "$BIPUSER"
chown "$BIPUSER"."$BIPGROUP" "$BIPHOME" 2>/dev/null || \
adduser --system --home "$BIPHOME" --disabled-password \
--ingroup "$BIPGROUP" "$BIPUSER"
if [ ! -e /var/log/bip ]
then
mkdir /var/log/bip
chown bip:bip /var/log/bip
chmod 750 /var/log/bip
fi
if [ "$1" = "configure" -a "$2" = "" ]
then
chown root:"$BIPGROUP" /etc/bip.conf
chmod 640 /etc/bip.conf
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/bip" ] || [ -e "/etc/init/bip.conf" ]; then
if [ ! -e "/etc/init/bip.conf" ]; then
update-rc.d bip defaults >/dev/null
fi
invoke-rc.d bip start || exit $?
fi
# End automatically added section
|