aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorbkw <bkw>2005-08-20 22:20:51 +0000
committerbkw <bkw>2005-08-20 22:20:51 +0000
commit550587c160c9fd1cea71e1982fd0091e6612dff8 (patch)
tree382e186b15c73f7180038fe4a60c81be0784583b /packages
parent95702ece6a7c74a673680c6f668c01426f1cabaa (diff)
downloadpfsense-packages-550587c160c9fd1cea71e1982fd0091e6612dff8.tar.gz
pfsense-packages-550587c160c9fd1cea71e1982fd0091e6612dff8.tar.bz2
pfsense-packages-550587c160c9fd1cea71e1982fd0091e6612dff8.zip
...
Diffstat (limited to 'packages')
-rw-r--r--packages/squid.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/squid.xml b/packages/squid.xml
index 7691caf9..2f81322a 100644
--- a/packages/squid.xml
+++ b/packages/squid.xml
@@ -10,6 +10,7 @@
$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");
@@ -62,7 +63,8 @@
fwrite($fout, "touch /tmp/filter_dirty\n\n");
fclose($fout);
chmod("/usr/local/etc/rc.d/squid.sh", 755);
- update_output_window("Configuring Squid... This may take a moment...");
+ chmod("/usr/local/etc/squid", 755);
+ 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");