fix: ssh
This commit is contained in:
parent
75326f6626
commit
a613e9f113
@ -53,7 +53,7 @@ class ExecuteCoolifyProcess implements ShouldQueue
|
||||
|
||||
$delimiter = 'EOF-COOLIFY-SSH';
|
||||
|
||||
File::chmod(base_path('coolify_id25519'), '0600');
|
||||
File::chmod(base_path('coolify_id25519'), 0600);
|
||||
|
||||
$sshCommand = 'ssh '
|
||||
. '-i ./coolify_id25519 '
|
||||
@ -78,12 +78,14 @@ class ExecuteCoolifyProcess implements ShouldQueue
|
||||
return $res;
|
||||
}
|
||||
|
||||
|
||||
// TODO Why is this not persisting?? Immutable property??
|
||||
$this->activity->properties->put('pid', $process->id());
|
||||
$this->activity->properties->put('exitCode', $res->exitCode());
|
||||
$this->activity->properties->put('stdout', $res->output());
|
||||
$this->activity->properties->put('stderr', $res->errorOutput());
|
||||
$this->activity->save();
|
||||
return $res;
|
||||
}
|
||||
|
||||
protected function handleOutput(string $type, string $output)
|
||||
|
Loading…
x
Reference in New Issue
Block a user