diff --git a/Shorewall/uninstall.sh b/Shorewall/uninstall.sh index c1dce12fd..1e4a668ed 100755 --- a/Shorewall/uninstall.sh +++ b/Shorewall/uninstall.sh @@ -197,7 +197,7 @@ fi rm -rf ${VARDIR}/shorewall rm -rf ${PERLLIBDIR}/Shorewall/* -rm -rf ${LIBEXECDIR}/shorewall +[ ${LIBEXECDIR} = ${SHAREDIR} ] || rm -rf ${LIBEXECDIR}/shorewall rm -rf ${SHAREDIR}/shorewall/configfiles/ rm -rf ${SHAREDIR}/shorewall/Samples/ rm -rf ${SHAREDIR}/shorewall/Shorewall/ diff --git a/Shorewall6/uninstall.sh b/Shorewall6/uninstall.sh index f710ee7bb..111d388da 100755 --- a/Shorewall6/uninstall.sh +++ b/Shorewall6/uninstall.sh @@ -136,7 +136,7 @@ else usage 1 fi -if [ -f ${SHARDIR}/shorewall6/version ]; then +if [ -f ${SHAREDIR}/shorewall6/version ]; then INSTALLED_VERSION="$(cat /usr/share/shorewall6/version)" if [ "$INSTALLED_VERSION" != "$VERSION" ]; then echo "WARNING: Shorewall6 Version $INSTALLED_VERSION is installed"