#! /bin/sh -e

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


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

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

#DEBHELPER#

exit 0


