summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorChristian Perrier <bubulle@debian.org>2008-07-16 22:41:04 +0200
committerJulien Valroff <julien@kirya.net>2010-01-04 19:39:21 +0100
commit01b76eb9b6121b19a376a9c447c5d431c7392c1c (patch)
treec2858ea28031a3bcee1036299f91f7f613ee391b /debian/postinst
parentd906efbb1aacfebd9931d49028f6240a667bae14 (diff)
Imported Debian patch 1.14-1.2debian/1.14-1.2
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..d17f371
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,20 @@
+#!/bin/sh
+if [ ! -f /etc/default/mailgraph ]; then
+ . /usr/share/debconf/confmodule
+ db_get mailgraph/start_on_boot
+ echo "BOOT_START=$RET" > /etc/default/mailgraph
+ db_get mailgraph/mail_log
+ echo "MAIL_LOG=$RET" >> /etc/default/mailgraph
+ db_get mailgraph/ignore_localhost
+ if [ "$RET" = "true" ] ; then
+ echo "IGNORE_LOCALHOST=false" >> /etc/default/mailgraph
+ else
+ echo "IGNORE_LOCALHOST=true" >> /etc/default/mailgraph
+ fi
+fi
+if [ ! -d /var/lib/mailgraph ]; then
+ mkdir /var/lib/mailgraph
+ chown www-data:www-data /var/lib/mailgraph
+fi
+#DEBHELPER#
+exit 0