#!/bin/sh -e if [ "$2" ] && dpkg --compare-versions $2 gt 2.0.0 \ && dpkg --compare-versions $2 lt 2.3.0; then echo "Some configuration files have changed in INN 2.4 and will need to" echo "be adjusted, most notably nnrp.access has mutated into readers.conf." echo "Also, note that you may need to rebuild the history database." echo "For more information, read the /usr/share/doc/inn2/NEWS.gz file." fi if [ "$2" ] && dpkg --compare-versions $2 eq 2.3.0-1; then echo 'Upgrade from 2.3.0-1 to >= 2.3.999+20030125-4 is not supported.' echo 'Aborting inn upgrade.' exit 1 fi if [ "$2" ] && dpkg --compare-versions $2 lt 2.3.1-2; then # remove any remaining symlinks under /usr/lib/news/bin/filter, then remove # the directory if it's empty if [ -d /usr/lib/news/bin/filter ]; then find /usr/lib/news/bin/filter -type l -exec rm {} \; rmdir /usr/lib/news/bin/filter 2> /dev/null || true fi fi #DEBHELPER# exit 0