From 8bf803b1cc8b5d81bc1c754d43d307cb98df8169 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 6 May 2015 08:34:43 -0300 Subject: Do not mess clamav user account on 2.3+ --- config/squid3/34/squid.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config') diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index de16756b..3ef5e270 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -103,6 +103,9 @@ function squid_chown_recursive($dir, $user, $group) { } function squid_check_clamav_user($user) { + if (SQUID_BASE == '/usr/local') + return; + $_gc = exec("/usr/sbin/pw usershow {$user}",$sq_ex_output,$sq_ex_return); $user_arg=($sq_ex_return == 0?"mod":"add"); $_gc = exec("/usr/sbin/pw user{$user_arg} {$user} -G wheel -u 9595 -s /sbin/nologin",$sq_ex_output,$sq_ex_return); -- cgit v1.2.3