#!/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#