#!/bin/sh 

set -e
. /usr/share/debconf/confmodule

db_input medium liblemonldap-ng-common-perl/domain || true

db_input medium liblemonldap-ng-common-perl/ldapServer || true

db_input medium liblemonldap-ng-common-perl/ldapPort || true

db_input medium liblemonldap-ng-common-perl/ldapBase || true

db_input medium liblemonldap-ng-common-perl/managerDn || true

db_input medium liblemonldap-ng-common-perl/managerPassword || true

db_input medium liblemonldap-ng-common-perl/portal || true

if [ "$2" != "" ]; then
	if dpkg --compare-versions "$2" lt 1.0; then
		db_input high liblemonldap-ng-common-perl/migrate || true
	fi
fi

db_go || true

