diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-15 17:01:13 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-15 17:01:13 +0000 |
commit | 3dea32c6a6c3e5bf5eb4078007588ace97835faf (patch) | |
tree | e3165f3c5d4b582d51aa0cd8c1ec067ae93b6c39 | |
parent | ee1258fa3141a1d4547946615768429f31eea66b (diff) | |
download | pfsense-packages-3dea32c6a6c3e5bf5eb4078007588ace97835faf.tar.gz pfsense-packages-3dea32c6a6c3e5bf5eb4078007588ace97835faf.tar.bz2 pfsense-packages-3dea32c6a6c3e5bf5eb4078007588ace97835faf.zip |
* 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
-rw-r--r-- | packages/squid.xml | 13 |
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 "<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/"); - </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> |