1
0
Fork 0
mirror of synced 2024-06-29 03:30:34 +12:00

Merge pull request #434 from appwrite/eldadfux/issue430

Fix for Doctor CLI
This commit is contained in:
Eldad A. Fux 2020-06-21 00:15:23 +03:00 committed by GitHub
commit a8b532580a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,15 +133,18 @@ $cli
}
if($request->getServer('_APP_STORAGE_ANTIVIRUS') === 'enabled') { // Check if scans are enabled
$antiVirus = new Network('clamav', 3310);
try {
$antiVirus = new Network('clamav', 3310);
if((@$antiVirus->ping())) {
Console::success('AntiVirus...........connected 👍');
}
else {
if((@$antiVirus->ping())) {
Console::success('AntiVirus...........connected 👍');
}
else {
Console::error('AntiVirus........disconnected 👎');
}
} catch (\Throwable $th) {
Console::error('AntiVirus........disconnected 👎');
}
}
try {