aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-10-12 17:44:13 -0400
committerjim-p <jim@pingle.org>2009-10-12 17:44:13 -0400
commitc738a039c14e0b46609fac9ace7766c55ec19c8a (patch)
tree649a1fdd32054a399b0599cda7447e1a4be65449 /config/squid
parent86ceb75405d3f56df3a61a3eaabc4bf684174120 (diff)
downloadpfsense-packages-c738a039c14e0b46609fac9ace7766c55ec19c8a.tar.gz
pfsense-packages-c738a039c14e0b46609fac9ace7766c55ec19c8a.tar.bz2
pfsense-packages-c738a039c14e0b46609fac9ace7766c55ec19c8a.zip
Add an rw/ro call and some extra code to make squid happy on nanobsd
Diffstat (limited to 'config/squid')
-rw-r--r--config/squid/squid.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index 291b80f5..d89985ee 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -1049,6 +1049,7 @@ function squid_resync_users() {
function squid_resync() {
global $config;
+ conf_mount_rw();
$conf = squid_resync_general() . "\n";
$conf .= squid_resync_cache() . "\n";
$conf .= squid_resync_redirector() . "\n";
@@ -1062,6 +1063,13 @@ function squid_resync() {
if(file_exists("/usr/local/libexec/squid/pinger"))
exec("chmod a+x /usr/local/libexec/squid/pinger");
+ foreach (array( SQUID_CONFBASE,
+ SQUID_ACLDIR,
+ ) as $dir) {
+ make_dirs($dir);
+ squid_chown_recursive($dir, 'proxy', 'proxy');
+ }
+
file_put_contents(SQUID_CONFBASE . '/squid.conf', $conf);
$log_dir = $config['installedpackages']['squid']['config'][0]['log_dir'].'/';
@@ -1083,6 +1091,7 @@ function squid_resync() {
}
filter_configure();
+ conf_mount_ro();
}
function squid_print_javascript_auth() {