#! /bin/sh -e

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

case "$1" in
    install)
    ;;
    upgrade)
      chmod ug+rwx -R /etc/imp
      if [ -x /etc/imp/defaults.php3 ]; then
        cp /etc/imp/defaults.php3 /etc/imp/defaults.php3.bak
      fi
      if [ -x /usr/share/horde/imp/imp.lib ]; then
        rm -f /usr/share/horde/imp/*.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


