From 27a620347acfe2ed6e1b62017df730b3a4df649c Mon Sep 17 00:00:00 2001 From: Matt Darfeuille Date: Mon, 20 Feb 2017 18:52:04 +0100 Subject: [PATCH] shorewall: Fail if Shorewall-core is not installed Shorewall-core's version file resides in ${SHAREDIR}/shorewall. Signed-off-by: Matt Darfeuille Signed-off-by: Tom Eastep --- Shorewall/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/install.sh b/Shorewall/install.sh index 139d32586..0b9aedbef 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -345,7 +345,7 @@ else first_install="Yes" fi -if [ -z "${DESTDIR}" -a $PRODUCT = shorewall -a ! -f ${SHAREDIR}/$PRODUCT/coreversion ]; then +if [ -z "${DESTDIR}" -a $PRODUCT = shorewall -a ! -f ${SHAREDIR}/shorewall/coreversion ]; then echo "Shorewall $VERSION requires Shorewall Core which does not appear to be installed" exit 1 fi