From 3dea32c6a6c3e5bf5eb4078007588ace97835faf Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 15 Mar 2005 17:01:13 +0000 Subject: * Cleanup tabbing and make it consistent. * Put a notice at the top of the configuration file that it was created by the pfSense package manager --- packages/squid.xml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'packages/squid.xml') diff --git a/packages/squid.xml b/packages/squid.xml index 5fbf9e30..4125d2b1 100644 --- a/packages/squid.xml +++ b/packages/squid.xml @@ -9,14 +9,15 @@ echo "<pre>"; system("/bin/mkdir /usr/local/etc/squid"); - system("/usr/bin/touch /usr/local/etc/squid/mime.conf"); - $lancfg = $config['interfaces']['lan']; + system("/usr/bin/touch /usr/local/etc/squid/mime.conf"); + $lancfg = $config['interfaces']['lan']; $lanif = $lancfg['if']; $lanip = $lancfg['ipaddr']; $lansa = gen_subnet($lancfg['ipaddr'], $lancfg['subnet']); $lansn = $lancfg['subnet']; $netmask = ""; $fout = fopen("/usr/local/etc/squid/squid.conf","w"); + fwrite($fout, "# This file was automatically generated by the pfSense package manager\n"); fwrite($fout, "# cat squid.conf\n"); fwrite($fout, "http_port 3128\n"); fwrite($fout, "icp_port 0\n"); @@ -52,11 +53,11 @@ exec("mv /var/db/pkg/squid* /tmp/"); filter_configure(); exec("mv /tmp/squid* /var/db/pkg/"); - + - exec("rm -rf /usr/local/squid/"); - exec("rm -rf /usr/local/etc/squid/"); - exec("rm -rf /usr/local/libexec/squid/"); + exec("rm -rf /usr/local/squid/"); + exec("rm -rf /usr/local/etc/squid/"); + exec("rm -rf /usr/local/libexec/squid/"); squid -- cgit v1.2.3