aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid/squid.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/squid/squid.inc')
-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() {