From 2a8d336336a6f133543defad0b2d50488d2dee8d Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 23 Jan 2021 16:29:18 -0800 Subject: [PATCH] Ensure slow commands have time to run --- app/Console/Commands/UpgradeCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/UpgradeCommand.php b/app/Console/Commands/UpgradeCommand.php index 25059ad88..a5e461391 100644 --- a/app/Console/Commands/UpgradeCommand.php +++ b/app/Console/Commands/UpgradeCommand.php @@ -105,6 +105,7 @@ class UpgradeCommand extends Command $this->line('$upgrader> ' . implode(' ', $command)); $process = new Process($command); + $process->setTimeout(10 * 60); $process->run(function ($type, $buffer) { $this->line($buffer); }); @@ -134,7 +135,8 @@ class UpgradeCommand extends Command $this->withProgress($bar, function () use ($user) { $this->line("\$upgrader> chown -R {$user}:{$user} *"); - $process = Process::fromShellCommandline("chown -R {$user}:{$user} *"); + $process = Process::fromShellCommandline("chown -R {$user}:{$user} *", $this->getLaravel()->basePath()); + $process->setTimeout(10 * 60); $process->run(function ($type, $buffer) { $this->{$type === Process::ERR ? 'error' : 'line'}($buffer); });