summaryrefslogtreecommitdiff
path: root/debian/conntrackd.postinst
diff options
context:
space:
mode:
authorroot <root@build-vm.(none)>2010-06-14 15:51:25 -0700
committerroot <root@build-vm.(none)>2010-06-14 15:51:25 -0700
commitc4414d9a8b31bedfb7471cd2365aaf5ea5cf55d5 (patch)
tree86ee5befd8195f56dcd91f9fd4e06368bf507a11 /debian/conntrackd.postinst
downloadconntrack-tools-c4414d9a8b31bedfb7471cd2365aaf5ea5cf55d5.tar.gz
conntrack-tools-c4414d9a8b31bedfb7471cd2365aaf5ea5cf55d5.zip
debian conntrack 0.9.14-2
Diffstat (limited to 'debian/conntrackd.postinst')
-rw-r--r--debian/conntrackd.postinst17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/conntrackd.postinst b/debian/conntrackd.postinst
new file mode 100644
index 0000000..847932b
--- /dev/null
+++ b/debian/conntrackd.postinst
@@ -0,0 +1,17 @@
+#!/bin/sh
+set -e
+
+action=$1
+version=$2
+
+# package versions < 0.9.8-1 had the configuration file in a
+# non-standard location
+if [ "$action" = configure -a -n "$version" ] &&
+ dpkg --compare-versions "$version" lt "1:0.9.8-1" &&
+ test -f /etc/conntrackd.conf.dpkg-updating
+then
+ # unmodified version, delete without prompting
+ rm /etc/conntrackd.conf.dpkg-updating
+fi
+
+#DEBHELPER#