From d6972064f073dbfe57bf23b5771c122d2a49c725 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 9 Apr 2007 17:57:33 +0000 Subject: [PATCH] Fix silly bug in do_initialize() that breaks all commands but start/restart git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5877 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-common/lib.config | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Shorewall-common/lib.config b/Shorewall-common/lib.config index 95165b714..ce315c241 100644 --- a/Shorewall-common/lib.config +++ b/Shorewall-common/lib.config @@ -1804,17 +1804,19 @@ do_initialize() { # PKTTYPE=$(added_param_value_no PKTTYPE $PKTTYPE) - case "${SHOREWALL_COMPILER:=shell}" in - perl) - export CONFIG_PATH; - return; - ;; - shell) - ;; - *) - startup_error "Invalid value ($SHOREWALL_COMPILER) for SHOREWALL_COMPILER" - ;; - esac + if [ $PROGRAM = compiler ]; then + case "${SHOREWALL_COMPILER:=shell}" in + perl) + export CONFIG_PATH; + return; + ;; + shell) + ;; + *) + startup_error "Invalid value ($SHOREWALL_COMPILER) for SHOREWALL_COMPILER" + ;; + esac + fi TMP_DIR=$(mktempdir)