From 616b3aa210d815399191c59a70d46512f861d431 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 5 May 2015 11:51:17 -0300 Subject: Replace all calls to make_dirs() by mkdir with mode 0755 and recursive enabled --- config/squid/squid.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config/squid') diff --git a/config/squid/squid.inc b/config/squid/squid.inc index 0ddd1645..8e87c7a1 100644 --- a/config/squid/squid.inc +++ b/config/squid/squid.inc @@ -94,7 +94,7 @@ function squid_dash_z() { if(!is_dir($cachedir.'/')) { log_error("Creating Squid cache dir $cachedir"); - make_dirs($cachedir); + @mkdir($cachedir, 0755, true); // Double check permissions here, should be safe to recurse cache dir if it's small here. mwexec("/usr/sbin/chown -R proxy:proxy $cachedir"); } @@ -223,7 +223,7 @@ function squid_install_command() { foreach (array( SQUID_CONFBASE, SQUID_ACLDIR, SQUID_BASE ) as $dir) { - make_dirs($dir); + @mkdir($dir, 0755, true); squid_chown_recursive($dir, 'proxy', 'proxy'); } @@ -1153,7 +1153,7 @@ function squid_resync() { foreach (array( SQUID_CONFBASE, SQUID_ACLDIR, SQUID_BASE ) as $dir) { - make_dirs($dir); + @mkdir($dir, 0755, true); squid_chown_recursive($dir, 'proxy', 'proxy'); } @@ -1163,7 +1163,7 @@ function squid_resync() { if(!is_dir($log_dir)) { log_error("Creating squid log dir $log_dir"); - make_dirs($log_dir); + @mkdir($log_dir, 0755, true); squid_chown_recursive($log_dir, 'proxy', 'proxy'); } -- cgit v1.2.3