From 01b76eb9b6121b19a376a9c447c5d431c7392c1c Mon Sep 17 00:00:00 2001 From: Christian Perrier Date: Wed, 16 Jul 2008 22:41:04 +0200 Subject: Imported Debian patch 1.14-1.2 --- debian/postinst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 debian/postinst (limited to 'debian/postinst') 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 -- cgit v1.2.3