summaryrefslogtreecommitdiff
path: root/debian/exim4-daemon-custom.postinst
diff options
context:
space:
mode:
authorMarc Haber <zugschlus@debian.org>2005-02-07 20:44:40 +0000
committerMarc Haber <zugschlus@debian.org>2005-02-07 20:44:40 +0000
commit2d4748425c3c75349bca4d3d0e8e63ebf069a5f9 (patch)
tree412a3229d719f85cc9534b131f7969ae5d6388e7 /debian/exim4-daemon-custom.postinst
parent30426c6b9c79116eafd42b9758cfa909316551b4 (diff)
downloadexim4-4.14-1.tar.gz
move exim tags to exim subdir4.14-1
svn path=/tags/debian_version_4_14_1/; revision=858
Diffstat (limited to 'debian/exim4-daemon-custom.postinst')
-rw-r--r--debian/exim4-daemon-custom.postinst27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/exim4-daemon-custom.postinst b/debian/exim4-daemon-custom.postinst
new file mode 100644
index 0000000..f76328a
--- /dev/null
+++ b/debian/exim4-daemon-custom.postinst
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+ configure)
+
+ # needed for woody: "start" will fail on dpkg-reconfigure because
+ # daemon is already running.
+ # Afaik this has changed, dpkg-reconfigure from sid/sarge will call
+ # prerm on reconfigure.
+ # || true is needed for succesfull installation with configtype 'none'
+ if [ -x /etc/init.d/exim4 ]; then
+ if [ -x /usr/sbin/invoke-rc.d ]; then
+ invoke-rc.d exim4 start || invoke-rc.d exim4 reload || true
+ else
+ /etc/init.d/exim4 start || /etc/init.d/exim4 reload || true
+ fi
+ fi
+ db_stop
+
+ ;;
+esac
+
+#DEBHELPER#