1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
#! /bin/sh
# Abort if any command returns an error value
set -e
if [ "$2" ] && dpkg --compare-versions $2 lt 2.2.2
then
# we're upgrading from 1.X version, restructuring is required!
echo ""
echo "WARNING: You appear to be upgrading from INN version $2."
echo ""
echo "This package does *NOT* support upgrading yet. The locations of many"
echo "files and directories are different in 2.2.2 than in previous Debian"
echo "INN packages. This package intends to eventually support cleanly"
echo "upgrading from at least Debian 1.7.2 packages, but it's not done yet."
echo ""
echo "If you wish to continue, and have not already done so, *PLEASE* make a"
echo "backup of all your INN configuration files before proceding, so that"
echo "you will have all the raw information you need to configure this"
echo "version essentially from scratch. See /usr/share/doc/inn2/README.Debian"
echo "for more information."
echo ""
echo "Type \"yes\" to confirm that you really want to proceed in spite of"
echo "the warning above."
echo ""
echo -n "Are you sure you want to continue with this upgrade? "
read response
case "$response" in
[Yy][Ye][Ss] ) echo OK ... ;;
* ) echo 'Aborting inn upgrade.'; exit 1 ;;
esac
fi
#DEBHELPER#
exit 0
|