aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/squid.xml')
-rw-r--r--packages/squid.xml13
1 files changed, 7 insertions, 6 deletions
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 @@
<custom_php_install_command>
echo "&lt;pre&gt;";
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/");
- </custom_php_pre_deinstall_command>
+ </custom_php_pre_deinstall_command>
<custom_php_deinstall_command>
- 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/");
</custom_php_deinstall_command>
<process_kill_command>squid</process_kill_command>
</packagegui>