Example #1
0
function install_all($install)
{
    $connection = Connection::prepare(new Config(new PostgresType(), host, port, user, pass));
    $connection->connect();
    $connection->begin();
    install_packages($connection, $install);
    $connection->commit();
    $connection->close();
}
Example #2
0
}
// call all the steps
if (!regenerate_configs()) {
    trigger_error('Config Generation Failed', E_USER_ERROR);
}
require_once $SYSTEM_ROOT . '/install/generate_install_key.php';
// check if the $packageList variable has been defined at all
if (!isset($package_list)) {
    $package_list = array();
}
// generate the char map first, creating asset will need this
generate_lang_char_map();
generate_import_tools_manager_config();
disable_missing_packages();
install_core($package_list);
$deferred = install_packages($package_list);
// if there were deferred packages, try to reinstall them.
if (is_array($deferred)) {
    // try and install the deferred packages again in a loop until the result
    // package is the same as the install package, at which point we know
    // the dependency has failed.
    $deferred = install_deferred($deferred);
    if (is_array($deferred)) {
        trigger_error('The following assets could not be installed due to dependency failures (see previous warnings for details): ' . "\n" . format_deferred_packages($deferred), E_USER_ERROR);
    }
}
echo "\n";
install_authentication_types();
generate_global_preferences();
install_event_listeners();
cache_asset_types();