#! /bin/sh -e

# Source debconf library
. /usr/share/debconf/confmodule || exit
db_version 2.0


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

    ;;
    abort-upgrade)
    ;;

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

#DEBHELPER#

exit 0
