From e2760b4ba0cc72062f78554d2fb9357c63ef5a82 Mon Sep 17 00:00:00 2001 From: Simon Schubert <2@0x2c.org> Date: Fri, 29 Oct 2010 03:17:21 +0200 Subject: [PATCH] debian: remove postinst --- debian/postinst | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 debian/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 -- 2.47.3