diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 11:45:10 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 17:19:08 -0300 |
commit | bede550d4cce352c7d0dd5dcff4a5b8119ffc3bd (patch) | |
tree | 09f3be95006f8458751df800e59d73f721389a07 /config/squid3 | |
parent | 8319695f3d0a4c9697efb5064785741a048f8907 (diff) | |
download | pfsense-packages-bede550d4cce352c7d0dd5dcff4a5b8119ffc3bd.tar.gz pfsense-packages-bede550d4cce352c7d0dd5dcff4a5b8119ffc3bd.tar.bz2 pfsense-packages-bede550d4cce352c7d0dd5dcff4a5b8119ffc3bd.zip |
Add SQUID_UID and SQUID_GID preparing it to use default user on 2.3+
Diffstat (limited to 'config/squid3')
-rwxr-xr-x | config/squid3/34/squid.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index c039b27f..4b8d596f 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -47,9 +47,13 @@ $pfs_version=substr(trim(file_get_contents("/etc/version")),0,3); if ($pfs_version == "2.1" || $pfs_version == "2.2") { define('SQUID_BASE', '/usr/pbi/squid-' . php_uname("m")); define('SQUID_LOCALBASE', SQUID_BASE . "/local"); + define('SQUID_UID', 'proxy'); + define('SQUID_GID', 'proxy'); } else { define('SQUID_BASE', '/usr/local'); define('SQUID_LOCALBASE', '/usr/local'); + define('SQUID_UID', 'squid'); + define('SQUID_GID', 'squid'); } define('SQUID_CONFBASE', SQUID_LOCALBASE .'/etc/squid'); |