Fixes for install, uninstall and fallback scripts

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@299 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-10-15 16:43:34 +00:00
parent 8ba46705cf
commit 395f60e729
3 changed files with 5 additions and 4 deletions

View File

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

View File

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