Fix bugs in the fallback and uninstall scripts

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@301 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-10-15 17:30:10 +00:00
parent 6ad54b6032
commit 55069fda99
2 changed files with 2 additions and 3 deletions

View File

@ -49,8 +49,7 @@ restore_file() # $1 = file to restore
fi
}
if [ ! -f /var/lib/shorewall/version-${VERSION}.bkout -a \
! -f /etc/shorewall/version-${VERSION}.bkout ]; then
if [ ! -f /usr/lib/shorewall/version-${VERSION}.bkout ]; then
echo "Shorewall Version $VERSION is not installed"
exit 1
fi

View File

@ -60,7 +60,7 @@ remove_file() # $1 = file to restore
fi
}
if [ -f /var/lib/shorewall/version ]; then
if [ -f /usr/lib/shorewall/version ]; then
INSTALLED_VERSION="`cat /var/lib/shorewall/version`"
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
echo "WARNING: Shorewall Version $INSTALLED_VERSION is installed"