diff options
author | Bill Marquette <billm@pfsense.org> | 2005-02-27 19:59:59 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-02-27 19:59:59 +0000 |
commit | 0da051a8c7ab053d1f584f4c4ab7596953defdc7 (patch) | |
tree | b1cf81b7126f4762769903adfef14bef1bbb712d /etc | |
parent | 1d169baa216e3671187a587ee8f95c5e9bca2d14 (diff) | |
download | pfsense-0da051a8c7ab053d1f584f4c4ab7596953defdc7.zip pfsense-0da051a8c7ab053d1f584f4c4ab7596953defdc7.tar.gz |
cleanup another hardcoded path
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 5245f83..7333ef8 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -870,7 +870,7 @@ EOD; } } - $squid_installed = run_command_return_string("/bin/ls /var/db/pkg/ | grep squid"); + $squid_installed = run_command_return_string("/bin/ls {$g['vardb_path']}/pkg/ | grep squid"); if ($squid_installed <> "") { $natrules .= "rdr on " . $lanif . " inet proto tcp from any to !{$lanip} port www -> 127.0.0.1 port 3128\n"; } @@ -951,7 +951,7 @@ function filter_rules_generate() { $log = ""; /* if squid is installed, lets install its rule */ - $squid_installed = run_command_return_string("/bin/ls /var/db/pkg/ | grep squid"); + $squid_installed = run_command_return_string("/bin/ls {$g['vardb_path']}/pkg/ | grep squid"); if ($squid_installed <> "") { $ipfrules .= "pass in quick on " . $lanif . " inet proto tcp from any to 127.0.0.1 port 3128 flags S/SA keep state label \"transparent proxy\"\n"; $ipfrules .= "pass out quick on " . $wanif . " inet proto tcp from ($wanif) to any port www flags S/SA keep state label \"transparent proxy\"\n"; |