There should be a template fragment /etc/e-smith/templates/etc/c-icap/c-icap.conf/90squidclamav
writing the line to /etc/c-icap/c-icap.conf
when squidclamav is enabled. There’s no need to modify a fragment to add the line manually.
[root@server ~]# rpm -qf /etc/e-smith/templates/etc/c-icap/c-icap.conf/90squidclamav
nethserver-squidclamav-3.1.0-1.ns7.noarch
[root@server ~]# cat /etc/e-smith/templates/etc/c-icap/c-icap.conf/90squidclamav
{
my $status = $squidclamav{'status'} || 'disabled';
if ($status eq 'enabled') {
$OUT.="Service squidclamav squidclamav.so\n";
}
}