summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2010-10-23 14:11:22 +0200
committerJulien Valroff <julien@kirya.net>2011-03-13 18:30:14 +0100
commit6ae50dc1afce089ecf5595fdd13a088afe2886ca (patch)
tree3d3feb4f9c122b6542cb0ce8cc5750a19582a9e0 /debian/postinst
parent44962f21cbc5c9de2482c61b7b1cce1b81812eaa (diff)
Imported Debian patch 1.14-1.4squeeze1debian/1.14-1.4squeeze1
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