diff --git a/database/migrations/2024_09_16_170001_populate_ssh_keys_and_clear_mux_directory.php b/database/migrations/2024_09_16_170001_populate_ssh_keys_and_clear_mux_directory.php index 944b00e13..6b5d09fd8 100644 --- a/database/migrations/2024_09_16_170001_populate_ssh_keys_and_clear_mux_directory.php +++ b/database/migrations/2024_09_16_170001_populate_ssh_keys_and_clear_mux_directory.php @@ -1,8 +1,8 @@ deleteDirectory(''); Storage::disk('ssh-mux')->makeDirectory(''); - PrivateKey::chunk(100, function ($keys) { foreach ($keys as $key) { $key->storeInFileSystem(); + if ($key->id === 0) { + Storage::disk('ssh-keys')->put('id.root@host.docker.internal', $key->private_key); + } } }); }