Fix. Remove write to SSH key on every remote command execution
This commit is contained in:
@@ -264,7 +264,7 @@ Route::middleware(['auth'])->group(function () {
|
||||
} else {
|
||||
$server = $execution->scheduledDatabaseBackup->database->destination->server;
|
||||
}
|
||||
$privateKeyLocation = savePrivateKeyToFs($server);
|
||||
$privateKeyLocation = $server->privateKey->getKeyLocation();
|
||||
$disk = Storage::build([
|
||||
'driver' => 'sftp',
|
||||
'host' => $server->ip,
|
||||
|
||||
Reference in New Issue
Block a user