Update GenerateInstanceActor command

This commit is contained in:
Daniel Supernault 2022-06-06 22:29:33 -06:00
parent 98c2397bf0
commit 2b7c8dd1e5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -29,9 +29,6 @@ class GenerateInstanceActor extends Command
}
if(InstanceActor::exists()) {
$this->line(' ');
$this->error('Instance actor already exists!');
$this->line(' ');
$actor = InstanceActor::whereNotNull('public_key')
->whereNotNull('private_key')
->firstOrFail();
@ -42,7 +39,8 @@ class GenerateInstanceActor extends Command
Cache::rememberForever(InstanceActor::PKI_PRIVATE, function() use($actor) {
return $actor->private_key;
});
exit;
$this->info('Instance actor succesfully generated. You do not need to run this command again.');
return;
}
$pkiConfig = [