mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-02-25 03:32:59 +01:00
Improve .env update handling
This commit is contained in:
parent
b5174735ad
commit
0e6ab65fcb
@ -138,8 +138,11 @@ trait SetupDatabaseViaCLI
|
|||||||
'DB_PASSWORD=' . $this->dbConfig['password'],
|
'DB_PASSWORD=' . $this->dbConfig['password'],
|
||||||
], $envContent);
|
], $envContent);
|
||||||
|
|
||||||
if ($envContent !== null) {
|
if ($envContent === null) {
|
||||||
|
$this->warn('Error while saving your .env file. Please add your credentials manually before your proceed');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
File::put(base_path('.env'), $envContent);
|
File::put(base_path('.env'), $envContent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user