#! /bin/sh # postinst script for @OLDPACKAGE@ # # see: dh_installdeb(1) set -e # set -x # Be verbose, be very verbose. # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see /usr/share/doc/packaging-manual/ # # quoting from the policy: # Any necessary prompting should almost always be confined to the # post-installation script, and should be protected with a conditional # so that unnecessary prompting doesn't happen if a package's # installation fails and the `postinst' is called with `abort-upgrade', # `abort-remove' or `abort-deconfigure'. . /usr/share/debconf/confmodule case "$1" in configure) for file in \ /usr/share/xml/xhtml/schema/dtd/1.0/xhtml1-strict.dtd \ /usr/share/xml/xhtml/schema/dtd/1.0/xhtml1-transitional.dtd \ /usr/share/xml/entities/xhtml/xhtml-lat1.ent \ /usr/share/xml/entities/xhtml/xhtml-special.ent \ /usr/share/xml/entities/xhtml/xhtml-symbol.ent \ ; do fname=${file##*/} test -s /usr/share/gforge/common/include/$fname || \ ln -sf $file /usr/share/gforge/common/include/ done adduser --system --group --home /var/www/@OLDPACKAGE@ @OLDPACKAGE@ > /dev/null 2>&1 adduser --system --group --home /var/lib/@OLDPACKAGE@/chroot/cvsroot anonscm-@OLDPACKAGE@ > /dev/null 2>&1 adduser --system --group --home /var/lib/@OLDPACKAGE@/chroot/cvsroot scm-@OLDPACKAGE@ > /dev/null 2>&1 adduser --system --group --home /var/lib/@OLDPACKAGE@/chroot/cvsroot www-@OLDPACKAGE@ > /dev/null 2>&1 if [ "$2" = "" ] ; then # Installation from scratch, let's generate initial config files if [ ! -e /etc/gforge/config.ini.d/debian-install.ini ] ; then cat > /etc/gforge/config.ini.d/debian-install.ini < /dev/null | md5sum | cut -c-32) else # ...or something else if need be. pw=$(date +"%s:%N" | md5sum | cut -c-32) fi cat > $t <&2 exit 0 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0