#! /bin/sh # postinst script for livesupport # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # installdir=/opt/campcaster case "$1" in configure) # do post-installation configuration $installdir/bin/postInstallStation.sh --directory=$installdir \ --apache-group=www-data \ --postgresql-dir=/etc/postgresql/8.1/main \ --postgresql-init-script=/etc/init.d/postgresql-8.1 # register and start the livesupport scheduler daemon cp -f $installdir/etc/campcaster-scheduler /etc/init.d update-rc.d campcaster-scheduler defaults 92 || true /etc/init.d/campcaster-scheduler start || true ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0