summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2010-01-06 21:06:59 +0100
committerJulien Valroff <julien@kirya.net>2010-01-06 21:06:59 +0100
commitab013d048226dd06e51af6c7cf34eaf8d11bea05 (patch)
tree128d5d5fc2cd75eae0a87186c8bbc5d17b932258
parent619ed1f6bb0cca01b01b92d438072c20f5f47574 (diff)
Minor fixes to config file
-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