fix: update ProductionSeeder to check for private key instead of server's private key
This commit is contained in:
parent
d3a6576a06
commit
10b3c6b107
1 changed files with 2 additions and 3 deletions
|
|
@ -88,9 +88,8 @@ public function run(): void
|
|||
echo ' Found '.count($ssh_keys_directory)." SSH keys\n";
|
||||
$coolify_key = collect($ssh_keys_directory)->firstWhere(fn ($item) => str($item)->contains($coolify_key_name));
|
||||
|
||||
$server = Server::find(0);
|
||||
$found = $server->privateKey;
|
||||
if (! $found) {
|
||||
$private_key_found = PrivateKey::find(0);
|
||||
if (! $private_key_found) {
|
||||
if ($coolify_key) {
|
||||
echo " Found Coolify SSH key\n";
|
||||
$user = str($coolify_key)->before('@')->after('id.');
|
||||
|
|
|
|||
Loading…
Reference in a new issue