aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3/34
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-06 08:34:43 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-06 08:34:43 -0300
commit8bf803b1cc8b5d81bc1c754d43d307cb98df8169 (patch)
treedb92860dabb31a572b8ab107e8cab48cd0e88e2d /config/squid3/34
parent0ee45df6fcf55699256beab78b37c4a34e956263 (diff)
downloadpfsense-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/34')
-rwxr-xr-xconfig/squid3/34/squid.inc3
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);