diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-06 08:34:43 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-06 08:34:43 -0300 |
commit | 8bf803b1cc8b5d81bc1c754d43d307cb98df8169 (patch) | |
tree | db92860dabb31a572b8ab107e8cab48cd0e88e2d /config/squid3 | |
parent | 0ee45df6fcf55699256beab78b37c4a34e956263 (diff) | |
download | pfsense-packages-8bf803b1cc8b5d81bc1c754d43d307cb98df8169.tar.gz pfsense-packages-8bf803b1cc8b5d81bc1c754d43d307cb98df8169.tar.bz2 pfsense-packages-8bf803b1cc8b5d81bc1c754d43d307cb98df8169.zip |
Do not mess clamav user account on 2.3+
Diffstat (limited to 'config/squid3')
-rwxr-xr-x | config/squid3/34/squid.inc | 3 |
1 files changed, 3 insertions, 0 deletions
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); |