From d870dd9b4fd82e92f82be1db2e4daa87d13bb92e Mon Sep 17 00:00:00 2001 From: Mark Unwin Date: Thu, 7 Nov 2024 10:10:36 +1000 Subject: [PATCH] Improve - Allow 5 minutes to install OpenSCAP. --- app/Models/BenchmarksModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/BenchmarksModel.php b/app/Models/BenchmarksModel.php index fbb367144..9fce2fc63 100644 --- a/app/Models/BenchmarksModel.php +++ b/app/Models/BenchmarksModel.php @@ -249,7 +249,7 @@ public function execute(int $id = 0, int $device_id = 0): array $this->logCreate($id, $device_id, 'info', $command); log_message('debug', $command . ' run on ' . $device->attributes->name); $parameters->command = $command; - $parameters->timeout = 120; // 2 minutes to install openscap-scanner, et al + $parameters->timeout = 300; // 5 minutes to install openscap-scanner, et al $output = ssh_command($parameters); if ($output === false) { $this->logCreate($id, $device_id, 'warning', 'SSH command to install openscap failed, please check log file.');