From 61bf2d5bfdfb2c8f420fba59de95518b4f60c05d Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 25 Feb 2012 16:02:20 -0800 Subject: [PATCH] Fix installer Signed-off-by: Tom Eastep --- Shorewall/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shorewall/install.sh b/Shorewall/install.sh index b3da78b0c..34686cf6c 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -302,9 +302,9 @@ if [ -n "$DESTDIR" ]; then install -d $OWNERSHIP -m 755 ${DESTDIR}/sbin install -d $OWNERSHIP -m 755 ${DESTDIR}${INITDIR} -else - [ -x /usr/share/shorewall/compiler.pl ] || \ - { echo " ERROR: Shorewall >= 4.3.5 is not installed" >&2; exit 1; } +elif [ $PRODUCT != shorewall ]; then + [ -x ${LIBEXEC}/shorewall/compiler.pl ] || \ + { echo " ERROR: Shorewall >= 4.5.0 is not installed" >&2; exit 1; } fi if [ -z "$DESTDIR" ]; then