mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
Fix squid configuration if no hdd cache should be used.
This commit is contained in:
@@ -176,6 +176,7 @@ chown nobody:nobody /var/ipfire/vpn/ipsec.conf
|
||||
mv /var/ipfire/proxy/squid.conf /var/ipfire/proxy/squid.conf.org
|
||||
grep -v "header_access " /var/ipfire/proxy/squid.conf.org | \
|
||||
grep -v "error_directory " | \
|
||||
grep -v "cache_dir null" | \
|
||||
grep -v "reply_body_max_size 0" > /var/ipfire/proxy/squid.conf
|
||||
echo >> /var/ipfire/proxy/squid.conf
|
||||
echo error_directory /etc/squid/errors >> /var/ipfire/proxy/squid.conf
|
||||
|
||||
@@ -3075,10 +3075,8 @@ cache_mem $proxysettings{'CACHE_MEM'} MB
|
||||
END
|
||||
;
|
||||
|
||||
if ($proxysettings{'CACHE_SIZE'} eq '0')
|
||||
if ($proxysettings{'CACHE_SIZE'} ne '0')
|
||||
{
|
||||
print FILE "cache_dir null /var/tmp\n\n";
|
||||
} else {
|
||||
print FILE "cache_dir aufs /var/log/cache $proxysettings{'CACHE_SIZE'} $proxysettings{'L1_DIRS'} 256\n\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user