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)