postinst is in sobby 0.4.8-2.
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 35 | #!/bin/sh
# vim:set et ts=2 sw=2:
set -e
# creating sobby group if it isn't already there
if ! getent group sobby >/dev/null; then
addgroup --system sobby
fi
# creating gdm user if he isn't already there
if ! getent passwd sobby >/dev/null; then
adduser \
--system \
--ingroup sobby \
--home /var/lib/sobby \
--gecos "Sobby collaborative editing server" \
sobby
fi
[ -d /var/lib/sobby ] || mkdir /var/lib/sobby
if [ -d /var/lib/sobby ]; then
chown -R sobby:sobby /var/lib/sobby
chmod 0750 /var/lib/sobby
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/sobby" ] || [ -e "/etc/init/sobby.conf" ]; then
if [ ! -e "/etc/init/sobby.conf" ]; then
update-rc.d sobby start 90 2 3 4 5 . stop 10 1 0 6 . >/dev/null
fi
invoke-rc.d sobby start || exit $?
fi
# End automatically added section
|