]> git.ipfire.org Git - people/ms/dma.git/commitdiff
debian: remove postinst
authorSimon Schubert <2@0x2c.org>
Fri, 29 Oct 2010 01:17:21 +0000 (03:17 +0200)
committerSimon Schubert <2@0x2c.org>
Fri, 29 Oct 2010 01:17:21 +0000 (03:17 +0200)
debian/postinst [deleted file]

diff --git a/debian/postinst b/debian/postinst
deleted file mode 100644 (file)
index 62ecb16..0000000
+++ /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