Extension:MaintenanceShell

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
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

$wgMaintenancePath

Added rights

maintenanceshell

Hooks used
UnitTestsList

Translate the MaintenanceShell extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

Phabricator:

Open tasks · Report a bug

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

Installation[edit | edit source]

  • Download and extract the tarball in your extensions/ folder. It should generate a new folder called MaintenanceShell directly inside your extensions/ folder.
  • 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;

Usage[edit | edit source]

Go to page Special:MaintenanceShell

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