From 9b93aba9af68963dcac22679361b7d105cbec999 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 6 May 2015 13:44:25 -0300 Subject: SQUID_CONFBASE is inside SQUID_BASE, create SQUID_CONFBASE recursively is enough. Also remove redundant chown() and chgrp() --- config/squid3/34/squid.inc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'config/squid3/34') 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"; -- cgit v1.2.3