diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 12:05:10 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 17:19:09 -0300 |
commit | 7c070039cf7717973d79414047e0fc8e9b343c23 (patch) | |
tree | 3a738a81a79aa6f97d1d5b99a0477a45b7a463ca /config | |
parent | 616b3aa210d815399191c59a70d46512f861d431 (diff) | |
download | pfsense-packages-7c070039cf7717973d79414047e0fc8e9b343c23.tar.gz pfsense-packages-7c070039cf7717973d79414047e0fc8e9b343c23.tar.bz2 pfsense-packages-7c070039cf7717973d79414047e0fc8e9b343c23.zip |
We just created directory, no need for recursive chown call
Diffstat (limited to 'config')
-rwxr-xr-x | config/squid3/34/squid.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index e2b95adb..11d445d4 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -130,11 +130,11 @@ function squid_dash_z($cache_action='none') { mwexec_bg("/bin/rm -rf {$cachedir}.old"); } - if (!is_dir($cachedir.'/')) { + if (!is_dir($cachedir)) { log_error("Creating Squid cache dir {$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"); + @chown($cachedir, SQUID_UID); + @chgrp($cachedir, SQUID_GID); } if (!is_dir($cachedir.'/00/')) { |