mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 04:59:30 +00:00
chore: Update SSH key generation in install.sh script
This commit is contained in:
@@ -8,18 +8,18 @@ class PopulateSshKeysAndClearMuxDirectory extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Storage::disk('ssh-keys')->deleteDirectory('');
|
||||
Storage::disk('ssh-keys')->makeDirectory('');
|
||||
// Storage::disk('ssh-keys')->deleteDirectory('');
|
||||
// Storage::disk('ssh-keys')->makeDirectory('');
|
||||
|
||||
Storage::disk('ssh-mux')->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);
|
||||
}
|
||||
}
|
||||
});
|
||||
// Storage::disk('ssh-mux')->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);
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user