Commit graph

56 commits

Author SHA1 Message Date
Bartosz Dziewoński
358a2347b2 Support for enabling skins in the command-line installer
Whoops, I kind of forgot that this exists. Follow-up to a957836f.

Bug: 70815
Change-Id: I6944fe1b1f7a8b77d32fafbca2349645320571f5
2014-09-18 17:33:23 +00:00
Legoktm
7458dc32d9 Revert "Generalize Installer::showStatusMessage()"
We probably want to put errors on top in the web installer
and warnings on top in the CLI installer due to differences
in scrolling.

This reverts commit 1c1e321af7.

Change-Id: I247030f0a3da6dff44884f4a282e52e92657fd91
2014-07-25 01:38:06 +00:00
withoutaname
1c1e321af7 Generalize Installer::showStatusMessage()
Folds functionality from child classes back into a
concrete implementation in the parent class, reducing code duplication.

Change-Id: I697fe697dbd59d5db6fc77aba20af322e6011782
2014-07-13 01:52:49 +00:00
umherirrender
f5f1e38b9a Fixed some @params documentation (includes/[db|installer])
Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.

Change-Id: I3595e9aac69ac42fbb74b0783fae0ad9bcc831aa
2014-04-19 13:55:27 +02:00
James D. Forrester
286a63360e Cliinstaller.php docs: Note config-install-extensions is used too
Change-Id: I996c59e32de931d9d58e89ef09ad1dd0fe5199ae
2014-04-14 13:46:47 -07:00
YuviPanda
513a7198e8 Do not set wgServer in cli install unless explicitly passed
Currently, if we do not pass a wgServer value (via --server),
the CLI installer sets the value to the default value
specified in DefaultSettings.php - which is to 'guess' by
calling into WebRequest::detectServer. This yields terrible
results, since WebRequest::detectServer expects to be working
in the context of a Web Request - and hence with HTTP Host
header information. Since calling from the CLI does not give
it host header information, it falls back to 'localhost',
which is not the value you usually want.

If we just do not set wgServer when it is not specified,
it is automatically calculated on every request by
WebRequest::detectServer, which does a splendid job.

Bug: 55376
Change-Id: I5436dd8c340604cbb59406a507188e11c8f86e86
2013-10-10 14:01:22 +05:30
Siebrand Mazeland
626addab9e Update formatting
With some manual corrections.

Change-Id: Icd947288c32fdb90a0f35388963ef5a17ffa58e7
2013-10-09 09:35:18 +00:00
Timo Tijhof
90749a261c doc: Remove repetitive "Give grep a chance" phrase from comments
* Follows-up b2e2b2e016.
* Minor clean up of surrounding documentation comments.
* Fixed missing keys for messages in WebInstallerPage

Change-Id: Iaa692064262f3c0e10cfa5e4b1ec8c86e5d02362
2013-08-29 10:46:46 -07:00
shirayuki
b2e2b2e016 Give grep a chance to find the usages
Change-Id: I18846326539b814fa7fa93ca54117dac3572e4b0
2013-08-16 22:07:38 +09:00
umherirrender
ee31d37821 Fixed spacing in context/installer/media/templates/upload folder
Added spaces before if, foreach
Added some braces for one line statements

Change-Id: I9761be9fa47adc3554852a97b19792b4648466ad
2013-04-21 06:22:06 +00:00
umherirrender
926d2ee143 Remove spaces between parentheses in function calls
Change-Id: If8ec665a01b566fa5189dfcc810b2d9a17f371e1
2013-03-17 16:13:22 +01:00
Tyler Anthony Romeo
4dcc7961df Fixed @param tags to conform with Doxygen format.
Doxygen expects parameter types to come before the
parameter name in @param tags. Used a quick regex
to switch everything around where possible. This
only fixes cases where a primitve variable (or a
primitive followed by other types) is the variable
type. Other cases will need to be fixed manually.

Change-Id: Ic59fd20856eb0489d70f3469a56ebce0efb3db13
2013-03-11 13:15:01 -04:00
umherirrender
48cd72819e fix some spacing
Change-Id: Ia9650be8b791fd2f0ccbc099436918a9d12d9968
2013-02-04 20:04:26 +00:00
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