diff options
author | Julien Valroff <julien@kirya.net> | 2010-01-06 20:45:11 +0100 |
---|---|---|
committer | Julien Valroff <julien@kirya.net> | 2010-01-06 20:45:11 +0100 |
commit | cc0712f26b594e7f9815de236da5c94f36daf8c0 (patch) | |
tree | db03686f8baaf0d08ffa7f448a9588d77dc0e31c /debian/preinst | |
parent | 359a73f4842b49120014c0b2bf69d740d43a8a89 (diff) |
Complete rewrite of the postinst script
Diffstat (limited to 'debian/preinst')
-rw-r--r-- | debian/preinst | 16 |
1 files changed, 7 insertions, 9 deletions
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 - - |