summaryrefslogtreecommitdiff
path: root/includes/installer/CliInstaller.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/installer/CliInstaller.php')
-rw-r--r--includes/installer/CliInstaller.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/includes/installer/CliInstaller.php b/includes/installer/CliInstaller.php
index 41392207..f9afbb20 100644
--- a/includes/installer/CliInstaller.php
+++ b/includes/installer/CliInstaller.php
@@ -24,11 +24,7 @@ class CliInstaller extends Installer {
'dbprefix' => 'wgDBprefix',
'dbtableoptions' => 'wgDBTableOptions',
'dbmysql5' => 'wgDBmysql5',
- 'dbserver' => 'wgDBserver',
'dbport' => 'wgDBport',
- 'dbname' => 'wgDBname',
- 'dbuser' => 'wgDBuser',
- 'dbpass' => 'wgDBpassword',
'dbschema' => 'wgDBmwschema',
'dbpath' => 'wgSQLiteDataDir',
'server' => 'wgServer',
@@ -88,6 +84,9 @@ class CliInstaller extends Installer {
$option['installdbuser'] );
$this->setVar( '_InstallPassword',
isset( $option['installdbpass'] ) ? $option['installdbpass'] : "" );
+
+ // Assume that if we're given the installer user, we'll create the account.
+ $this->setVar( '_CreateDBAccount', true );
}
if ( isset( $option['pass'] ) ) {
@@ -184,11 +183,8 @@ class CliInstaller extends Installer {
return parent::envCheckPath();
}
- protected function envCheckServer( $srv = null ) {
- if ( $this->getVar( 'wgServer' ) ) {
- $srv = $this->getVar( 'wgServer' );
- }
- return parent::envCheckServer( $srv );
+ protected function envGetDefaultServer() {
+ return $this->getVar( 'wgServer' );
}
public function dirIsExecutable( $dir, $url ) {