1
0
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:
Kovah 2019-10-22 18:21:45 +02:00
parent b5174735ad
commit 0e6ab65fcb
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B

View File

@ -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);
}
}