Skip to content

Commit

Permalink
Internal - Add install logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Sep 22, 2020
1 parent 9b8cb74 commit f986f77
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions public/main/install/install.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2951,11 +2951,15 @@ function installSchemas($container, $manager, $upgrade = false)
;
$em->persist($accessUrl);
$em->flush();

error_log('AccessUrl created');
}

if ($upgrade) {
error_log('Upgrade settings');
$settingsManager->updateSchemas($accessUrl);
} else {
error_log('Install settings');
// Installing schemas (filling settings_current table)
$settingsManager->installSchemas($accessUrl);
}
Expand Down Expand Up @@ -3117,8 +3121,12 @@ function finishInstallationWithContainer(
// Inserting default data
$data = file_get_contents($sysPath.'public/main/install/data.sql');
$result = $manager->getConnection()->prepare($data);
$result->execute();
$result->free();
$executeResult = $result->execute();

if ($executeResult) {
error_log('data.sql Ok');
}
//$result->free();

UserManager::setPasswordEncryption($encryptPassForm);

Expand Down

0 comments on commit f986f77

Please sign in to comment.