Init: Fix when to compile the firewall on Debian

Signed-off-by: Matt Darfeuille <matdarf@gmail.com>
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Matt Darfeuille 2017-12-25 12:44:43 +01:00 committed by Tom Eastep
parent b1d1fa862a
commit f68f47d01b
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -74,7 +74,8 @@ setstatedir() {
[ -n "$statedir" ] && STATEDIR=${statedir} || STATEDIR=${VARLIB}/${PRODUCT}
if [ -x ${STATEDIR}/firewall ]; then
return 0;
return 0
else
if [ $PRODUCT = shorewall ]; then
${SBINDIR}/shorewall compile
elif [ $PRODUCT = shorewall6 ]; then
@ -82,6 +83,7 @@ setstatedir() {
else
return 1
fi
fi
}
#