Adding support for using config values for process
This commit is contained in:
parent
96b3e269c5
commit
a4e13f56c0
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ public function execute_remote_command(...$commands)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$remote_command = SshMultiplexingHelper::generateSshCommand($this->server, $command);
|
$remote_command = SshMultiplexingHelper::generateSshCommand($this->server, $command);
|
||||||
$process = Process::timeout(3600)->idleTimeout(3600)->start($remote_command, function (string $type, string $output) use ($command, $hidden, $customType, $append) {
|
$process = Process::timeout(config('constants.ssh.command_timeout'))->idleTimeout(3600)->start($remote_command, function (string $type, string $output) use ($command, $hidden, $customType, $append) {
|
||||||
$output = str($output)->trim();
|
$output = str($output)->trim();
|
||||||
if ($output->startsWith('╔')) {
|
if ($output->startsWith('╔')) {
|
||||||
$output = "\n".$output;
|
$output = "\n".$output;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue