head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	99.10.15.01.08.39;	author rkrusty;	state Exp;
branches;
next	1.1;

1.1
date	99.08.24.15.42.25;	author rkrusty;	state Exp;
branches;
next	;


desc
@@


1.2
log
@[IEM] Migrating skattek to debconf. (debian build stuff)
      Updating the defaults.php3.dist file removing unneeded items
      Same with the pgsql create script
      Updating Changes, version number, etc...
      Removing unneeded default options from the object
      Slowly moving away from a db.lib and towards phplib
@
text
@#! /bin/sh -e

# Source debconf library
. /usr/share/debconf/confmodule.sh

case "$1" in
    install)
    ;;
    upgrade)
      chmod ug+rwx -R /etc/skattek
      if [ -x /etc/skattek/defaults.php3 ]; then
        cp /etc/skattek/defaults.php3 /etc/skattek/defaults.php3.bak
      fi
      if [ -x /usr/share/horde/skattek/skattek.lib ]; then
        rm -f /usr/share/horde/skattek/*.lib >/dev/null 2>&1
      fi
    ;;

    abort-upgrade)
    ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0


@


1.1
log
@[IEM] moving all debian related files into packaging/debian to follow suit
@
text
@d1 1
a1 4
#! /bin/sh
# preinst script for skattek
#
# see: dh_installdeb(1)
d3 2
a4 1
set -e
d11 6
a16 2
      cp /etc/skattek/defaults.php3 /etc/skattek/defaults.php3.bak
      echo "Making a backup of defaults.php3 to defaults.php3.bak just in case"
@

