#! /bin/sh
# postinstall script for zope-replacesupport

set -e

pkg=$(basename $0 | sed 's/\.postinst//')

. /usr/share/debconf/confmodule
db_version 2.0

case "$1" in
  configure)
    db_get "${pkg}/postinst" || true
    case "$RET" in
      true)
        if [ -x /usr/sbin/invoke-rc.d ]; then
          invoke-rc.d zope restart
        else
          /etc/init.d/zope restart
        fi
      ;;
    esac
  ;;
  abort-upgrade|abort-remove|abort-deconfigure)
  ;;
  *)
    echo "postinst called with unknown argument \`$1'" >&2
    exit 0
  ;;
esac

db_stop

#DEBHELPER#

exit 0
