A few bugfixes in CLI installer related to interactivity
authorDan
Fri, 23 Jan 2009 21:59:03 -0500
changeset 818 12346be3ec3d
parent 816 44b8446533e1
child 819 7ef806a90d44
A few bugfixes in CLI installer related to interactivity
install/includes/cli-core.php
install/install-cli.php
--- a/install/includes/cli-core.php	Fri Jan 16 13:14:08 2009 -0500
+++ b/install/includes/cli-core.php	Fri Jan 23 21:59:03 2009 -0500
@@ -314,7 +314,10 @@
 if ( !$result )
 {
   if ( !$silent )
+  {
     echo parse_shellcolor_string($lang->get('cli_test_fail')) . "\n";
+    echo "[$driver] " . $dbal->sql_error() . "\n";
+  }
   installer_fail($lang->get('cli_err_db_connect_fail'));
 }
 
--- a/install/install-cli.php	Fri Jan 16 13:14:08 2009 -0500
+++ b/install/install-cli.php	Fri Jan 23 21:59:03 2009 -0500
@@ -17,5 +17,7 @@
  * Thanks to Stephan for helping out with l10n in the installer (his work is in includes/stages/*.php).
  */
 
-require(dirname(__FILE__) . '/includes/cli-core.php');
+echo "INSTALLER STARTED\n";
+$result = require(dirname(__FILE__) . '/includes/cli-core.php');
+exit( $result ? 0 : 1 );