wip: server storage check

This commit is contained in:
Andras Bacsai
2024-10-01 11:52:36 +02:00
parent b00828d4aa
commit 5cd81fe255
3 changed files with 70 additions and 0 deletions

View File

@@ -1212,4 +1212,13 @@ $schema://$host {
return $this;
}
public function storageCheck(): ?string
{
$commands = [
'df / --output=pcent | tr -cd 0-9',
];
return instant_remote_process($commands, $this, false);
}
}