From 81fca7f4048392d0eced890e97a561fa0619c121 Mon Sep 17 00:00:00 2001 From: teastep Date: Thu, 22 Mar 2007 23:57:51 +0000 Subject: [PATCH] Expand Shell Variables in shorewall.conf git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5642 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- New/Shorewall/Config.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/New/Shorewall/Config.pm b/New/Shorewall/Config.pm index bc3c3a5e1..2defa74d3 100644 --- a/New/Shorewall/Config.pm +++ b/New/Shorewall/Config.pm @@ -263,6 +263,7 @@ sub get_configuration() { chomp $line; next if $line =~ /^\s*#/; next if $line =~ /^\s*$/; + $line = $1 . ( $ENV{$2} || '' ) . $3 while $line =~ /^(.*?)\$([a-zA-Z]\w*)(.*)$/; if ( $line =~ /^([a-zA-Z]\w*)\s*=\s*(.*)$/ ) { my ($var, $val) = ($1, $2);