chore: Remove unused migration file for populating SSH keys and clearing mux directory

This commit is contained in:
Andras Bacsai
2024-09-23 19:46:45 +02:00
parent 7aab44645f
commit e00ec2f75b

View File

@@ -1,25 +0,0 @@
<?php
use App\Models\PrivateKey;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Storage;
class PopulateSshKeysAndClearMuxDirectory extends Migration
{
public function up()
{
// 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);
// }
// }
// });
}
}