summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/config11
1 files changed, 8 insertions, 3 deletions
diff --git a/debian/config b/debian/config
index 0e5107b..81a5977 100644
--- a/debian/config
+++ b/debian/config
@@ -1,13 +1,18 @@
-#!/bin/sh -e
+#!/bin/sh
+
+set -e
+
. /usr/share/debconf/confmodule
-if [ -f /etc/default/mailgraph ]; then
+db_title "mailgraph" || true
+
+if [ -r /etc/default/mailgraph ]; then
. /etc/default/mailgraph
db_set mailgraph/start_on_boot "$BOOT_START"
db_set mailgraph/mail_log "$MAIL_LOG"
db_set mailgraph/ignore_localhost "$IGNORE_LOCALHOST"
fi
-
+
db_input medium mailgraph/start_on_boot || true
db_go
db_input medium mailgraph/mail_log || true