mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 06:24:44 +02:00
Copy example env over for user
This commit is contained in:
parent
fe3bf88ea4
commit
a050fbd2d3
@ -61,7 +61,6 @@ class AppSettingsCommand extends Command
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
|
||||
if (empty(config('hashids.salt')) || $this->option('new-salt')) {
|
||||
$this->variables['HASHIDS_SALT'] = str_random(20);
|
||||
}
|
||||
@ -124,6 +123,12 @@ class AppSettingsCommand extends Command
|
||||
}
|
||||
|
||||
$this->checkForRedis();
|
||||
|
||||
$path = base_path('.env');
|
||||
if (!file_exists($path)) {
|
||||
copy($path . '.example', $path);
|
||||
}
|
||||
|
||||
$this->writeToEnvironment($this->variables);
|
||||
|
||||
$this->info($this->console->output());
|
||||
|
Loading…
x
Reference in New Issue
Block a user