mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Merge pull request #3241 from appwrite/fix-installation-env-defaults
fix: installation overriding default env variables
This commit is contained in:
commit
0390ec4bd0
1 changed files with 2 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ $cli
|
|||
$env = $service->getEnvironment()->list();
|
||||
|
||||
foreach ($env as $key => $value) {
|
||||
if (is_null($value)) continue;
|
||||
foreach($vars as &$var) {
|
||||
if($var['name'] === $key) {
|
||||
$var['default'] = $value;
|
||||
|
|
@ -108,6 +109,7 @@ $cli
|
|||
$env = new Env($data);
|
||||
|
||||
foreach ($env->list() as $key => $value) {
|
||||
if (is_null($value)) continue;
|
||||
foreach($vars as &$var) {
|
||||
if($var['name'] === $key) {
|
||||
$var['default'] = $value;
|
||||
|
|
|
|||
Loading…
Reference in a new issue