config is in dma 0.9-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
db_version 2.0
db_capb backup
if [ -e /etc/mailname ]; then
db_set dma/mailname "`cat /etc/mailname`" || true
else
db_get dma/mailname || true
if [ -z "$RET" ]; then
db_set dma/mailname "`hostname --fqdn`" || true
fi
fi
state=1
while [ "$state" -ge 1 -a "$state" -le 2 ]; do
case "$state" in
1) db_input high dma/mailname || true
;;
2) db_input high dma/relayhost || true
;;
esac
if db_go; then
state=$(($state + 1))
else
state=$(($state - 1))
fi
done
db_stop || true
exit 0
|