summaryrefslogtreecommitdiff
path: root/debian/conntrackd.postinst
blob: 847932bb39156fee870c1c6284d56805df87db24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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#