summaryrefslogtreecommitdiff
path: root/debian/conntrackd.postrm
blob: 4c294466a73bb0c1455ff070bec6242bcee25e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e

action=$1

# package versions < 0.9.8-1 had the configuration file in a
# non-standard location
if [ "$action" = "abort-upgrade" ] &&
   [ -f /etc/conntrackd.conf.dpkg-updating ]
then
    # unmodified version, restore
    mv /etc/conntrackd.conf.dpkg-updating /etc/conntrackd.conf
fi

if [ "$action" = "purge" ] ; then
    rm -f /etc/conntrackd.conf.dpkg-updating
fi

#DEBHELPER#