mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 19:01:19 +01:00
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:
parent
6ad54b6032
commit
55069fda99
@ -49,8 +49,7 @@ restore_file() # $1 = file to restore
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ ! -f /var/lib/shorewall/version-${VERSION}.bkout -a \
|
if [ ! -f /usr/lib/shorewall/version-${VERSION}.bkout ]; then
|
||||||
! -f /etc/shorewall/version-${VERSION}.bkout ]; then
|
|
||||||
echo "Shorewall Version $VERSION is not installed"
|
echo "Shorewall Version $VERSION is not installed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -60,7 +60,7 @@ remove_file() # $1 = file to restore
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -f /var/lib/shorewall/version ]; then
|
if [ -f /usr/lib/shorewall/version ]; then
|
||||||
INSTALLED_VERSION="`cat /var/lib/shorewall/version`"
|
INSTALLED_VERSION="`cat /var/lib/shorewall/version`"
|
||||||
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
if [ "$INSTALLED_VERSION" != "$VERSION" ]; then
|
||||||
echo "WARNING: Shorewall Version $INSTALLED_VERSION is installed"
|
echo "WARNING: Shorewall Version $INSTALLED_VERSION is installed"
|
||||||
|
Loading…
Reference in New Issue
Block a user