diff --git a/Shorewall-init/init.debian.sh b/Shorewall-init/init.debian.sh index 6c15570b2..9fb4cb4a0 100755 --- a/Shorewall-init/init.debian.sh +++ b/Shorewall-init/init.debian.sh @@ -74,13 +74,15 @@ setstatedir() { [ -n "$statedir" ] && STATEDIR=${statedir} || STATEDIR=${VARLIB}/${PRODUCT} if [ -x ${STATEDIR}/firewall ]; then - return 0; - if [ $PRODUCT = shorewall ]; then - ${SBINDIR}/shorewall compile - elif [ $PRODUCT = shorewall6 ]; then - ${SBINDIR}/shorewall -6 compile + return 0 else - return 1 + if [ $PRODUCT = shorewall ]; then + ${SBINDIR}/shorewall compile + elif [ $PRODUCT = shorewall6 ]; then + ${SBINDIR}/shorewall -6 compile + else + return 1 + fi fi }