Fix. Remove write to SSH key on every remote command execution

This commit is contained in:
peaklabs-dev committed 2024-09-16 21:34:27 +02:00
1 parent 70b757df5b
commit 86722939cd
5 files changed
+107 -115

No files matched your search

+1 -1
View File
@@ -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,