Commit graph

43 commits

Author SHA1 Message Date
Alex Monk
2fabea7eea Use wfMessage instead of deprecated wfMsg*
Or $this->msg in special pages.

Change-Id: I774a89d646615053c8424050e42ad95601f92543
2012-08-18 14:11:05 +02:00
Antoine Musso
406988f099 CLI install exited with 0 status code
The CliInstaller used the '0' exit code whenever the status was not OK.
That makes third party script assuming the install actually ran fine
since a 0 exit code is mostly considered as a success. By sending an
error code > 0 (here 1), our automatic installers will be able to catch
the failure and stop proceeding.

I had that issue with a Jenkins job which ran the CLI installer and kept
continuing although there was an error about LocalSettings.php already
existing.

Change-Id: I4f4727df85c09c0a04e4630df91c6213dfce6e9a
2012-07-07 20:12:39 +02:00
Max Semenik
63fb18bd4e Add a way for packagers to override some installation details
...after a discussion with Debian packagers. They can now override installer
classes and change LocalSettings.php the installer generates. The file
intended for such overrides, mw-config/overrides.php, has intentionally been
placed outside of includes to underline the "don't change includes" paradigm.

Change-Id: Id82b90f6740307609bc6c6f4fb8765bc3484dbe7
2012-06-12 20:18:44 +04:00
Alexandre Emsenhuber
09bb6975c5 Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: I1615bf268515ed7169e33173cea6ec30402451dc
2012-05-06 07:50:15 +02:00
Chad Horohoe
590b7a0f54 Separate Cli/Web logic for envCheckServer() per CR on r104576 2011-12-12 15:11:08 +00:00
Chad Horohoe
245567acfc Fix r102137. CliInstaller needs to override wgServer, but not in a manner that breaks the web installer. 2011-11-29 17:59:52 +00:00
Daniel Friesen
ca2fe3d47c Make the CliInstaller use --server to set wgServer instead of always setting it to "http://localhost" 2011-11-06 01:15:25 +00:00
Mark A. Hershberger
06de2ecc96 avoid E_STRICT warnings when no --installdbpass is given 2011-11-02 20:15:28 +00:00
Mark A. Hershberger
d8db86a4a6 Fix cli install so that db user is created if needed. 2011-10-11 21:24:00 +00:00
Mark A. Hershberger
9ade28f591 Remove duplicate bits from the optionmap 2011-10-11 03:24:21 +00:00
Mark A. Hershberger
6cf18f9324 * Make envCheckPath() specific to each installer, web vs cli
* Add warning during the CLI install that the uploads directory isn't
  being checked for arbitrary script execution
2011-08-03 15:46:06 +00:00
Mark A. Hershberger
c719d1a2e3 MFT r89770 2011-06-09 15:42:23 +00:00
Sam Reed
fcc55ce325 Followup r89529
Fix non static caller of getExistingLocalSettings
2011-06-05 21:03:39 +00:00
Sam Reed
f675c6bf05 Documentation 2011-05-02 16:58:29 +00:00
Max Semenik
a80cfe3425 Bug 28039 - Boldface all fatals. Moved showError() from WebInstaller to base class, added its call to all env checks wherever appropriate. Also fixed a fatal in CLI installer when no DB drivers are present. 2011-04-27 18:22:01 +00:00
Max Semenik
82b0358137 Cleaned up the mess of message text being passed instead of keys to wfMsg() and friends by CLI installer. No surprise we had to remove angle brackets from the resulting output 2011-04-02 07:34:07 +00:00
Chad Horohoe
0678de8be4 Partial revert r78593 (adding --upgrade option to install.php). Rather than supporting the added complexity in the installer, just bail and tell them to run update.php, since they obviously have command line access :) 2011-03-25 19:06:24 +00:00
Max Semenik
f7acf53335 (bug 26939) Installer does not set $wgMetaNamespace 2011-03-20 17:36:18 +00:00
Max Semenik
bb3dca86f3 Fixed message borkage from r78593 2011-03-19 15:27:24 +00:00
Platonides
b6853e0b84 $wgDBts2schema was removed in r81132 2011-02-10 23:57:30 +00:00
Chad Horohoe
44dd1794a1 Partially revert r69738 (splitting Installer/CoreInstaller). As discussed on CR, this probably wasn't the best route to go with this code.
We can figure that out sometime in 1.18
2011-01-21 15:27:16 +00:00
Sam Reed
c03e16f3f2 Revert r79807 2011-01-07 18:08:35 +00:00
Sam Reed
00ed0f087f Allow CLI installer to set $whShowExceptionDetails 2011-01-07 05:43:51 +00:00
Mark A. Hershberger
8ca8fd164c Not sure how I missed --scriptpath option since it was right above the wikiroot option I added, but I did. (ok, so I *do* know how I missed it, but it was a dumb mistake). 2010-12-19 05:32:55 +00:00
Mark A. Hershberger
cd28ef5cbe * Add --wikiroot option to CLI installer so the user can give something besides /wiki
* Add --upgrade option to CLI installer so we can throw an error when LocalSettings.php is present and provide an upgrade route to the user.
* Fixup CLI's showStatusMessage so allow CLI to throw an error and quit
2010-12-19 04:55:00 +00:00
Max Semenik
14991fbd39 Added --env-checks parameter to install.php that checks for prerequisites instead of installing 2010-11-16 18:13:35 +00:00
Chad Horohoe
719483a29b Followup r70207, make path for LocalSettings.php configurable 2010-11-02 17:11:35 +00:00
Alexandre Emsenhuber
4aa5c729e8 Uncommented some used options; added the possibility to define $wgScriptPath 2010-10-02 07:39:17 +00:00
Siebrand Mazeland
64fdb18e74 More whitespace updates for files touched in r72342:
* stylize.php run
* code formatting updates
* updated a few comments
* added braces where not used
2010-09-04 13:48:16 +00:00
Mark A. Hershberger
5dbbca7331 w/s changes 2010-09-04 01:06:34 +00:00
Alexandre Emsenhuber
b8cafd4978 * Added file description headers
* Added @file where needed
2010-08-21 18:20:09 +00:00
Mark A. Hershberger
aeb2df736b * Make parsertests work with interwiki table on sqlite
* re r69542 temporary fix for new-installer + interwiki table
* temporary fix for outputing LocalSettings.php in the CliInstaller
2010-07-30 20:17:28 +00:00
Jeroen De Dauw
635e2c38f2 Added deployment documentation group 2010-07-29 18:36:39 +00:00
Jeroen De Dauw
f8d6f560fb Style and doc improvements 2010-07-29 18:03:25 +00:00
Jeroen De Dauw
e27138c5b0 Removed showStatusMessage from the Installer and WebInstaller classes as it's only used in the CliInstaller 2010-07-29 15:20:04 +00:00
Sam Reed
5fd23ed8b5 More unused globals 2010-07-25 17:47:41 +00:00
Jeroen De Dauw
a620daf697 Split Installer into Installer and CoreInstaller + made misc style and doc improvements 2010-07-22 17:58:26 +00:00
Jeroen De Dauw
cd7e177336 Clarified field and method visibility 2010-07-19 03:16:54 +00:00
Mark A. Hershberger
572bfe1228 * re r69332, r64217: complete removal of WikiSysop for CLI installer
* Incorporate new Installer::performInstallation() function
* Update SQLite schema tables to insert data to updatelog correctly
2010-07-18 18:52:05 +00:00
Mark A. Hershberger
bec7a947e7 * Add Status::getWarningsArray() to complement Status::getErrorsArray()
* Add Status::getWikiTextArray() to allow different ways of formating a bunch of status messages (e.g. CLI output)
* Clean up messages in CliInstaller, use more i18n
* Use warning messages from Status return object in CLI installer
* Make Installer::isCompiled static so we don't have to create an object just to see that we can't use it.
* Add Installer::addInstallStepFollowing so we don't have MySQLInstaller mucking in its parent's data
2010-07-07 02:53:19 +00:00
Mark A. Hershberger
c4100fb83b * Eliminate CLIInstallerOutput per r68645 since, yes, it wasn't needed.
* Make sure output only happens in the top-level Installer implementations.
* Differentiate Status warning messages from Status error messages in the Installer.
* Change abstract method from Install::showStatusError() to Install::showStatusMessage() since we'll use it to show warnings now, too.
* TODO Need a better way to extract/display Status warning messages since, from my look at the Status class, it looks like warnings are implemented, but not really used.
2010-07-02 21:15:13 +00:00
Mark A. Hershberger
2dbed8d5cd * consolidate some installer functionals into the Installer class
* add beginning of CliInstallerOutput class
* make it possible to override LocalSettings from a maint script
* make basic cli installation possible (only tested mysql so far)
2010-06-27 21:48:51 +00:00
Mark A. Hershberger
e3644ae2c4 * Adapt install.php to a more “traditional” maintenance-style script so it can extend and use Maintenance class convenience methods.
* Add CliInstaller class and put it in the autoloads.
2010-06-23 01:08:34 +00:00