#!/bin/bash -e
# config maintainer script for zdkimfilter

# source debconf stuff
. /usr/share/debconf/confmodule

# debconf protocol 2.0
db_version 2.0

# see whether zdkimsign is setuid
db_input high zdkimfilter/install-setuid || true
if [ "$1" = "configure" -a -e /usr/bin/zdkimsign ]; then
	if [[ "$(stat --printf=%A /usr/bin/zdkimsign)" = *s* ]]; then
		db_set zdkimfilter/install-setuid true
	fi
else
	db_go
fi

# source dbconfig-common shell library, and call the hook function
if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then
	dbc_dbuser="zdkimfilter"
	dbc_dbname="zdkimfilter"
	. /usr/share/dbconfig-common/dpkg/config.mysql
	dbc_go zdkimfilter "$@"
fi

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0


