forked from extern/shorewall_code
60beb2f1d2
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7501 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
26 lines
571 B
Bash
26 lines
571 B
Bash
#!/bin/sh -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
# if we are upgrading from version < 3.4 then we have to rename the
|
|
# configuration file
|
|
if [ "$2" ] && dpkg --compare-versions "$2" lt "3.4"
|
|
then
|
|
if [ -f /etc/shorewall-lite/shorewall.conf ]
|
|
then
|
|
rm /etc/shorewall-lite/shorewall.conf
|
|
fi
|
|
fi
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|