From: Simon Schubert <2@0x2c.org> Date: Fri, 29 Oct 2010 01:17:21 +0000 (+0200) Subject: debian: remove postinst X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2760b4ba0cc72062f78554d2fb9357c63ef5a82;p=people%2Fms%2Fdma.git debian: remove postinst --- diff --git a/debian/postinst b/debian/postinst deleted file mode 100644 index 62ecb16..0000000 --- a/debian/postinst +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -# postinst script for dma - -set -e - -. /usr/share/debconf/confmodule -db_version 2.0 - -umask 022 - -case "$1" in - configure) - db_get dma/relayhost - if [ -n "$RET" ]; then - sed -i -re 's@^[[:space:]]*(#+[[:space:]]*)?SMARTHOST([[:space:]]+.*)?$@SMARTHOST '"$RET@" /etc/dma/dma.conf - else - sed -i -re 's@^[[:space:]]*(#+[[:space:]]*)?SMARTHOST([[:space:]]+.*)?$@#SMARTHOST@' /etc/dma/dma.conf - fi - - if dpkg --compare-versions "$2" lt '0.0.2009.07.17-3'; then - chown root:mail /etc/dma/* - chmod 640 /etc/dma/* - fi - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0