Extension:MaintenanceShell

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
MaintenanceShell

Release status: experimental

MaintenanceShell-v0.4.0-screenshot.png
Implementation Special page
Description Provides access to the maintenance scripts via a special page.
Author(s) Andrew Fitzgerald
Timo Tijhof
Latest version 0.5.0 (2014-04-01)
MediaWiki 1.21+
License GNU General Public License
Download
Parameters
  • $wgMaintenanceShellDir
  • $wgMaintenancePath
Added rights

maintenanceshell

Translate the MaintenanceShell extension if possible

Check usage and version matrix; code metrics
Bugs: list open list all report

The MaintenanceShell extension provides access to the maintenance scripts via a Special Page.

Installation[edit | edit source]

  • Download and extract the files in a directory called MaintenanceShell in your extensions/ folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository.
  • Add the following code at the bottom of your LocalSettings.php:
require_once( "$IP/extensions/MaintenanceShell/MaintenanceShell.php" );
  • Configure the user rights and grant yourself access to that group from a bureaucrat account.
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

Configuration[edit | edit source]

Parameters[edit | edit source]

$wgMaintenanceShellPath
By default the extension lists maintenance scripts of MediaWiki core. Change this path to a different directory if you'd like to list different scripts instead (of a certain extension for example).

User rights[edit | edit source]

maintenanceshell
This right (for security reasons not assigned to any group by default) grants the right to use Special:MaintenanceShell.
// Grant access to Special:MaintenanceShell to the "developer" user group:
$wgGroupPermissions['developer']['maintenanceshell'] = true;
 
# Or

// Create a new "maintenanceshell" user group for Special:MaintenanceShell:
$wgGroupPermissions['maintenanceshell']['maintenanceshell'] = true;

Change log[edit | edit source]

See the page containing the change log.

See also[edit | edit source]

  • Extension:GoToShell — a much simpler shell extension that only launches one command specified in a configuration setting