diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 12:06:40 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 17:19:09 -0300 |
commit | a3e6c7c09976204363add3bac8c6d000fdc6916c (patch) | |
tree | 95fc3cb7095a05b083754393d618b1429ef66dd2 /config/squid3 | |
parent | 337409216460698001d235d4d2b1f148a4dd3602 (diff) | |
download | pfsense-packages-a3e6c7c09976204363add3bac8c6d000fdc6916c.tar.gz pfsense-packages-a3e6c7c09976204363add3bac8c6d000fdc6916c.tar.bz2 pfsense-packages-a3e6c7c09976204363add3bac8c6d000fdc6916c.zip |
Respect SQUID_[UG]ID
Diffstat (limited to 'config/squid3')
-rwxr-xr-x | config/squid3/34/squid.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index e65a3508..25d85361 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -137,13 +137,13 @@ function squid_dash_z($cache_action='none') { @chgrp($cachedir, SQUID_GID); } - if (!is_dir($cachedir.'/00/')) { + if (!is_dir($cachedir.'/00')) { log_error("Creating squid cache subdirs in $cachedir"); mwexec(SQUID_BASE. "/sbin/squid -k shutdown -f " . SQUID_CONFFILE); sleep(5); mwexec(SQUID_BASE. "/sbin/squid -k kill -f " . SQUID_CONFFILE); // Double check permissions here, should be safe to recurse cache dir if it's small here. - mwexec("/usr/sbin/chown -R proxy:proxy $cachedir"); + mwexec("/usr/sbin/chown -R " . SQUID_UID . ":" . SQUID_GID . " $cachedir"); mwexec(SQUID_BASE. "/sbin/squid -z -f " . SQUID_CONFFILE); } |