From bede550d4cce352c7d0dd5dcff4a5b8119ffc3bd Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 5 May 2015 11:45:10 -0300 Subject: Add SQUID_UID and SQUID_GID preparing it to use default user on 2.3+ --- config/squid3/34/squid.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config/squid3') 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'); -- cgit v1.2.3