mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-02-24 19:22:35 +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'],
|
||||
], $envContent);
|
||||
|
||||
if ($envContent !== null) {
|
||||
File::put(base_path('.env'), $envContent);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user