mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update Installer.php
This commit is contained in:
parent
a2090f5445
commit
a0bca2668a
1 changed files with 6 additions and 0 deletions
|
@ -111,6 +111,12 @@ class Installer extends Command
|
|||
|
||||
protected function envCreate()
|
||||
{
|
||||
if( $this->option('dangerously-overwrite-env') ) {
|
||||
$this->line('');
|
||||
$this->error('Existing .env File Found - Renaming to .env.danger');
|
||||
exec('cp .env .env.danger');
|
||||
}
|
||||
|
||||
$this->line('');
|
||||
$this->info('Creating .env if required');
|
||||
if(!file_exists(app()->environmentFilePath())) {
|
||||
|
|
Loading…
Reference in a new issue