diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-21 19:58:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-21 19:58:37 +0000 |
commit | 6b38f03f75c1fa8254f79e6dddeb528732223f4b (patch) | |
tree | c4d7875af0cd59e317b575e2e7cb28be883853a4 /packages | |
parent | 321e99a1bd0ff44355a67007c6b6d8d76e50b348 (diff) | |
download | pfsense-packages-6b38f03f75c1fa8254f79e6dddeb528732223f4b.tar.gz pfsense-packages-6b38f03f75c1fa8254f79e6dddeb528732223f4b.tar.bz2 pfsense-packages-6b38f03f75c1fa8254f79e6dddeb528732223f4b.zip |
Revert to working version.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/squid.xml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/squid.xml b/packages/squid.xml index 1b1242a0..7691caf9 100644 --- a/packages/squid.xml +++ b/packages/squid.xml @@ -10,7 +10,6 @@ $lanip = $lancfg['ipaddr']; $lansa = gen_subnet($lancfg['ipaddr'], $lancfg['subnet']); $lansn = $lancfg['subnet']; - safe_mkdir("/usr/local/etc/squid"); $fout = fopen("/usr/local/etc/squid/squid.conf","w"); fwrite($fout, "#\n"); fwrite($fout, "# This file was automatically generated by the pfSense package manager\n"); @@ -42,6 +41,7 @@ conf_mount_rw(); config_lock(); global $config; + /* if ($_POST[0] == "") $_POST = $config['installedpackages']['package']['squid']['config']; */ write_squid_static_config(); $fout = fopen("/usr/local/etc/squid/squid.conf", "a"); if ($_POST['cache_size'] != "") fwrite($fout, "cache_mem " . $_POST['cache_size'] . " MB\n"); @@ -62,8 +62,7 @@ fwrite($fout, "touch /tmp/filter_dirty\n\n"); fclose($fout); chmod("/usr/local/etc/rc.d/squid.sh", 755); - chmod("/usr/local/etc/squid", 755); - update_output_window("Configuring Squid... This may take a moment..."); + update_output_window("Configuring Squid... This may take a moment..."); mwexec("/usr/local/sbin/squid -z"); update_output_window("Starting Squid..."); mwexec_bg("/usr/local/etc/rc.d/squid.sh"); |