postinst is in bip 0.8.9-1.2build1.
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 "$BIPGROUP" "$BIPHOME" 2>/dev/null || addgroup --system "$BIPGROUP"
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 "$BIPUSER":"$BIPGROUP" /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/11.1.4ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -x "/etc/init.d/bip" ]; then
update-rc.d bip defaults >/dev/null
invoke-rc.d bip start || exit 1
fi
fi
# End automatically added section
|