fix auto install

This commit is contained in:
Philipp Holzer 2019-04-13 21:46:06 +02:00
parent 90a38a00d8
commit 677cb205f5
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
5 changed files with 78 additions and 23 deletions

View file

@ -140,6 +140,10 @@ class Installer
{
$basepath = $configCache->get('system', 'basepath');
$url = $configCache->get('system', 'url');
print_r("URL - " . $url . PHP_EOL);
$tpl = Renderer::getMarkupTemplate('local.config.tpl');
$txt = Renderer::replaceMacros($tpl, [
'$dbhost' => $configCache->get('database', 'hostname'),
@ -152,12 +156,12 @@ class Installer
'$hostname' => $configCache->get('config', 'hostname'),
'$urlpath' => $configCache->get('system', 'urlpath'),
'$baseurl' => $configCache->get('system', 'url'),
'$baseurl' => $url,
'$sslpolicy' => $configCache->get('system', 'ssl_policy'),
'$basepath' => $basepath,
'$timezone' => $configCache->get('system', 'default_timezone'),
'$language' => $configCache->get('system', 'language'),
]);
], false);
$result = file_put_contents($basepath . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'local.config.php', $txt);