Fixed antivirus health check
This commit is contained in:
parent
2ba91a9b6c
commit
0161a8d413
|
@ -5,6 +5,7 @@ global $utopia, $request, $response, $register, $project;
|
|||
use Utopia\Exception;
|
||||
use Storage\Devices\Local;
|
||||
use Storage\Storage;
|
||||
use Appwrite\ClamAV\Network;
|
||||
|
||||
$utopia->get('/v1/health')
|
||||
->desc('Check DB Health')
|
||||
|
@ -141,7 +142,7 @@ $utopia->get('/v1/health/storage/anti-virus')
|
|||
->action(
|
||||
function() use ($response)
|
||||
{
|
||||
$antiVirus = new \ClamAV\Network('clamav', 3310);
|
||||
$antiVirus = new Network('clamav', 3310);
|
||||
|
||||
$response->json([
|
||||
'status' => (@$antiVirus->ping()) ? 'online' : 'offline',
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
* ― Rick Cook, The Wizardry Compiled
|
||||
*/
|
||||
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
/*
|
||||
// ini_set('display_errors', 1);
|
||||
// ini_set('display_startup_errors', 1);
|
||||
// error_reporting(E_ALL);
|
||||
|
||||
error_reporting(0);
|
||||
ini_set('display_errors', 0);*/
|
||||
ini_set('display_errors', 0);
|
||||
|
||||
$path = (isset($_GET['q'])) ? explode('/', $_GET['q']) : [];
|
||||
$domain = (isset($_SERVER['HTTP_HOST'])) ? $_SERVER['HTTP_HOST'] : '';
|
||||
|
|
Loading…
Reference in a new issue