New feature: Command line installer. Credit: Dilan Anurudda.

This was a Google Summer of Code 2007 Project.

This introduces two new files, admin/cliupgrader.php and lib/installlib.php.

It also introduces a new PEAR library, Console_GetOpt.  I have recieved permission from the upstream author to include this in GPL Moodle (essentially dual license it) -  notes in lib/pear.

Most stuff that outputs html during install gets suppressed by the use of a constant.

Run the script like  php admin/cliupgrade.php --help for info.

Note that this all uses strings from install/ rather than lang, so I have updated stringnames.txt accordingly and they'll all be broken until the cronjob that generates them runs.
This commit is contained in:
mjollnir_
2008-01-07 01:54:28 +00:00
parent 6b34dd500c
commit 2f13f94ccc
14 changed files with 2642 additions and 26 deletions
+3
View File
@@ -266,6 +266,9 @@ function set_dbfamily() {
*/
function preconfigure_dbconnection() {
if (defined('ADODB_ASSOC_CASE')) {
return; // when in cli mode, it's possible for this to be called twice (eg cli installer)
}
global $CFG;
/// Define dbfamily