diff options
author | jim-p <jim@pingle.org> | 2009-10-12 17:44:13 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2009-10-12 17:44:13 -0400 |
commit | c738a039c14e0b46609fac9ace7766c55ec19c8a (patch) | |
tree | 649a1fdd32054a399b0599cda7447e1a4be65449 /config/squid/squid.inc | |
parent | 86ceb75405d3f56df3a61a3eaabc4bf684174120 (diff) | |
download | pfsense-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/squid.inc')
-rw-r--r-- | config/squid/squid.inc | 9 |
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() { |