mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 06:38:53 +01:00
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:
parent
8ba46705cf
commit
395f60e729
@ -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
|
||||
|
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user