19declare(strict_types=1);
37 $ini = $environment->getResource(
Setup\Environment::RESOURCE_ILIAS_INI);
42 $virus_scanner =
$ini->readVariable(
'tools',
'vscantype');
43 $storage->storeConfigText(
46 'The engine that is used for virus scanning.'
50 $storage->storeConfigText(
52 $ini->readVariable(
'tools',
'icap_client_path'),
53 'The configured ICAP client path.'
55 $storage->storeConfigText(
57 $ini->readVariable(
'tools',
'icap_host'),
58 'The configured ICAP host.'
60 $storage->storeConfigText(
62 $ini->readVariable(
'tools',
'icap_port'),
63 'The configured ICAP port.'
65 $storage->storeConfigText(
67 $ini->readVariable(
'tools',
'icap_service_name'),
68 'The configured ICAP service name.'
70 } elseif (is_string($virus_scanner) &&
71 $virus_scanner !==
'' &&
73 $storage->storeConfigText(
75 $ini->readVariable(
'tools',
'scancommand'),
76 'The path to the binary that is used for virus scanning.'
78 $storage->storeConfigText(
80 $ini->readVariable(
'tools',
'cleancommand'),
81 'The path to the binary that is used for cleaning up after virus scanning.'
collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
getTentativePreconditions(Setup\Environment $environment)
An environment holds resources to be used in the setup process.
Storage is simple key/value store without further schema definition.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...