mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-02 20:44:30 +00:00
Update GenerateInstanceActor command
This commit is contained in:
parent
98c2397bf0
commit
2b7c8dd1e5
1 changed files with 2 additions and 4 deletions
|
@ -29,9 +29,6 @@ class GenerateInstanceActor extends Command
|
||||||
}
|
}
|
||||||
|
|
||||||
if(InstanceActor::exists()) {
|
if(InstanceActor::exists()) {
|
||||||
$this->line(' ');
|
|
||||||
$this->error('Instance actor already exists!');
|
|
||||||
$this->line(' ');
|
|
||||||
$actor = InstanceActor::whereNotNull('public_key')
|
$actor = InstanceActor::whereNotNull('public_key')
|
||||||
->whereNotNull('private_key')
|
->whereNotNull('private_key')
|
||||||
->firstOrFail();
|
->firstOrFail();
|
||||||
|
@ -42,7 +39,8 @@ class GenerateInstanceActor extends Command
|
||||||
Cache::rememberForever(InstanceActor::PKI_PRIVATE, function() use($actor) {
|
Cache::rememberForever(InstanceActor::PKI_PRIVATE, function() use($actor) {
|
||||||
return $actor->private_key;
|
return $actor->private_key;
|
||||||
});
|
});
|
||||||
exit;
|
$this->info('Instance actor succesfully generated. You do not need to run this command again.');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$pkiConfig = [
|
$pkiConfig = [
|
||||||
|
|
Loading…
Reference in a new issue