aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-06 13:44:25 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-06 13:44:25 -0300
commit9b93aba9af68963dcac22679361b7d105cbec999 (patch)
treee31f87f36ff2cf0f40e3e6be072233cc3b70b778 /config/squid3
parentfed0fd2bc8dfe9bdaa1b8f72cbd43a390b7b64f7 (diff)
downloadpfsense-packages-9b93aba9af68963dcac22679361b7d105cbec999.tar.gz
pfsense-packages-9b93aba9af68963dcac22679361b7d105cbec999.tar.bz2
pfsense-packages-9b93aba9af68963dcac22679361b7d105cbec999.zip
SQUID_CONFBASE is inside SQUID_BASE, create SQUID_CONFBASE recursively is enough. Also remove redundant chown() and chgrp()
Diffstat (limited to 'config/squid3')
-rwxr-xr-xconfig/squid3/34/squid.inc4
1 files changed, 0 insertions, 4 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index a233762b..29c71dbf 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -328,7 +328,6 @@ function squid_install_command() {
foreach (array( SQUID_CONFBASE,
SQUID_ACLDIR,
- SQUID_BASE,
SQUID_SSL_DB ) as $dir) {
@mkdir($dir, 0755, true);
squid_chown_recursive($dir, SQUID_UID, SQUID_GID);
@@ -1896,11 +1895,8 @@ function squid_resync($via_rpc="no") {
conf_mount_rw();
foreach (array( SQUID_CONFBASE,
SQUID_ACLDIR,
- SQUID_BASE,
SQUID_SSL_DB ) as $dir) {
@mkdir($dir, 0755, true);
- chown($dir, SQUID_UID);
- chgrp($dir, SQUID_GID);
squid_chown_recursive($dir, SQUID_UID, SQUID_GID);
}
$conf = squid_resync_general() . "\n";