cleanup delay

This commit is contained in:
xiaomlove
2023-05-03 23:59:30 +08:00
parent 1a22fd6584
commit 28b54ce053
3 changed files with 28 additions and 21 deletions
+8 -7
View File
@@ -641,13 +641,14 @@ class Install
public function executeCommand($command)
{
$this->doLog("command: $command");
$result = exec($command, $output, $result_code);
$this->doLog(sprintf('result_code: %s, result: %s', $result_code, $result));
$this->doLog("output: " . json_encode($output));
if ($result_code != 0) {
throw new \RuntimeException(json_encode($output));
}
executeCommand($command);
// $this->doLog("command: $command");
// $result = exec($command, $output, $result_code);
// $this->doLog(sprintf('result_code: %s, result: %s', $result_code, $result));
// $this->doLog("output: " . json_encode($output));
// if ($result_code != 0) {
// throw new \RuntimeException(json_encode($output));
// }
}
public function runDatabaseSeeder()