Merge pull request #434 from appwrite/eldadfux/issue430
Fix for Doctor CLI
This commit is contained in:
commit
a8b532580a
1 changed files with 9 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue