aboutsummaryrefslogtreecommitdiffstats
path: root/core/register_command.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-05-29 03:45:49 +0200
committerAndreas Fischer <bantu@owncloud.com>2014-05-29 03:45:49 +0200
commit678a6b98ff7925c9934fa7349600ff9fe39e8ecd (patch)
tree426125dcbfbaea16ab0d3cf04d388b2d36af54c4 /core/register_command.php
parent3ef9570d02d6a83082355e1f485a863a1bc4b431 (diff)
parent43759f1f468fac8de4a8db0b8d94d004f6fb3745 (diff)
downloadnextcloud-server-678a6b98ff7925c9934fa7349600ff9fe39e8ecd.tar.gz
nextcloud-server-678a6b98ff7925c9934fa7349600ff9fe39e8ecd.zip
Merge pull request #8748 from owncloud/cli_maintenance_mode
Add ability to enable/disable maintenance mode from cli. * owncloud/cli_maintenance_mode: Use OC\Config instead of OC_Config Changed class name to mode Add ability to enable/disable maintenance mode from cli.
Diffstat (limited to 'core/register_command.php')
-rw-r--r--core/register_command.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/register_command.php b/core/register_command.php
index dfb5134eff9..e9de76c1444 100644
--- a/core/register_command.php
+++ b/core/register_command.php
@@ -12,6 +12,7 @@ $application->add(new OC\Core\Command\Db\GenerateChangeScript());
$application->add(new OC\Core\Command\Db\ConvertType(OC_Config::getObject(), new \OC\DB\ConnectionFactory()));
$application->add(new OC\Core\Command\Upgrade());
$application->add(new OC\Core\Command\Maintenance\SingleUser());
+$application->add(new OC\Core\Command\Maintenance\Mode(OC_Config::getObject()));
$application->add(new OC\Core\Command\App\Disable());
$application->add(new OC\Core\Command\App\Enable());
$application->add(new OC\Core\Command\App\ListApps());