Automatic Installation fix (#5565)
* Automatic Install Config Fix * new unittest for AutomaticInstallation * unittest for autoinstall - removed password check * removed bak-file * automatic install - always save environment variables - just skip db environment if not `--savedb` is set * fixed help (options) * fixed help (options) * Deleting Auto-Install tests until fix for proper DB restoring
This commit is contained in:
parent
409e939fc4
commit
d7395299fb
4 changed files with 516 additions and 451 deletions
|
@ -72,7 +72,20 @@ function install_post(App $a) {
|
|||
// connect to db
|
||||
DBA::connect($dbhost, $dbuser, $dbpass, $dbdata);
|
||||
|
||||
Install::install($urlpath, $dbhost, $dbuser, $dbpass, $dbdata, $phpath, $timezone, $language, $adminmail);
|
||||
$errors = Install::createConfig($urlpath, $dbhost, $dbuser, $dbpass, $dbdata, $phpath, $timezone, $language, $adminmail);
|
||||
|
||||
if ($errors) {
|
||||
$a->data['db_failed'] = $errors;
|
||||
return;
|
||||
}
|
||||
|
||||
$errors = Install::installDatabaseStructure();
|
||||
|
||||
if ($errors) {
|
||||
$a->data['db_failed'] = $errors;
|
||||
} else {
|
||||
$a->data['db_installed'] = true;
|
||||
}
|
||||
|
||||
return;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue