summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
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