chore: Update ProductionSeeder to call OauthSettingSeeder and PopulateSshKeysDirectorySeeder
This commit is contained in:
parent
be8573c828
commit
b81f9114d9
1 changed files with 3 additions and 5 deletions
|
|
@ -106,10 +106,9 @@ public function run(): void
|
|||
|
||||
$found = PrivateKey::find(0);
|
||||
if ($found) {
|
||||
echo 'Private Key found in database.';
|
||||
echo 'Private Key found in database.\n';
|
||||
if ($coolify_key) {
|
||||
echo "SSH key found for the Coolify host machine (localhost).\n";
|
||||
Storage::disk('ssh-keys')->delete($coolify_key);
|
||||
}
|
||||
} else {
|
||||
if ($coolify_key) {
|
||||
|
|
@ -124,7 +123,6 @@ public function run(): void
|
|||
]);
|
||||
$server->update(['user' => $user]);
|
||||
echo "SSH key found for the Coolify host machine (localhost).\n";
|
||||
Storage::disk('ssh-keys')->delete($coolify_key);
|
||||
} else {
|
||||
PrivateKey::create(
|
||||
[
|
||||
|
|
@ -198,8 +196,8 @@ public function run(): void
|
|||
|
||||
get_public_ips();
|
||||
|
||||
$oauth_settings_seeder = new OauthSettingSeeder;
|
||||
$oauth_settings_seeder->run();
|
||||
$this->call(OauthSettingSeeder::class);
|
||||
$this->call(PopulateSshKeysDirectorySeeder::class);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue