mirror of
https://github.com/friendica/friendica
synced 2025-02-16 01:34:01 +00:00
Merge pull request #14784 from ne20002/feat/wizard
use env variables in install wizard for values if available
This commit is contained in:
commit
9e7a527327
1 changed files with 4 additions and 4 deletions
|
@ -235,22 +235,22 @@ class Install extends BaseModule
|
||||||
'$system_url' => $this->configCache->get('system', 'url'),
|
'$system_url' => $this->configCache->get('system', 'url'),
|
||||||
'$dbhost' => ['database-hostname',
|
'$dbhost' => ['database-hostname',
|
||||||
$this->t('Database Server Name'),
|
$this->t('Database Server Name'),
|
||||||
$this->configCache->get('database', 'hostname'),
|
$this->configCache->get('database', 'hostname') ? : getenv('MYSQL_HOST') ? : 'localhost',
|
||||||
'',
|
'',
|
||||||
$this->t('Required')],
|
$this->t('Required')],
|
||||||
'$dbuser' => ['database-username',
|
'$dbuser' => ['database-username',
|
||||||
$this->t('Database Login Name'),
|
$this->t('Database Login Name'),
|
||||||
$this->configCache->get('database', 'username'),
|
$this->configCache->get('database', 'username') ? : getenv('MYSQL_USER') ? : '',
|
||||||
'',
|
'',
|
||||||
$this->t('Required'),
|
$this->t('Required'),
|
||||||
'autofocus'],
|
'autofocus'],
|
||||||
'$dbpass' => ['database-password',
|
'$dbpass' => ['database-password',
|
||||||
$this->t('Database Login Password'),
|
$this->t('Database Login Password'),
|
||||||
$this->configCache->get('database', 'password'),
|
$this->configCache->get('database', 'password') ? : getenv('MYSQL_PASSWORD') ? : '',
|
||||||
$this->t("For security reasons the password must not be empty"),
|
$this->t("For security reasons the password must not be empty"),
|
||||||
$this->t('Required')],
|
$this->t('Required')],
|
||||||
'$dbdata' => ['database-database',
|
'$dbdata' => ['database-database',
|
||||||
$this->t('Database Name'),
|
$this->t('Database Name') ? : getenv('MYSQL_DATABASE') ? : '',
|
||||||
$this->configCache->get('database', 'database'),
|
$this->configCache->get('database', 'database'),
|
||||||
'',
|
'',
|
||||||
$this->t('Required')],
|
$this->t('Required')],
|
||||||
|
|
Loading…
Add table
Reference in a new issue