From cc0712f26b594e7f9815de236da5c94f36daf8c0 Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Wed, 6 Jan 2010 20:45:11 +0100 Subject: Complete rewrite of the postinst script --- debian/preinst | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'debian/preinst') diff --git a/debian/preinst b/debian/preinst index 0070083..729ecc5 100644 --- a/debian/preinst +++ b/debian/preinst @@ -12,13 +12,13 @@ set -e case "$1" in upgrade) if [ "$2" \< "1.13-1.1" ]; then - if [ -f /etc/default/mailgraph ]; then - . /usr/share/debconf/confmodule - . /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 + if [ -r /etc/default/mailgraph ]; then + . /usr/share/debconf/confmodule + . /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 fi ;; @@ -37,5 +37,3 @@ esac #DEBHELPER# exit 0 - - -- cgit v1.2.3