summaryrefslogtreecommitdiffstats
path: root/core/Command/App
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2018-02-20 10:54:41 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-02-26 16:34:52 +0100
commit84f6477ce551a9fe69150acaf0158651c644cf58 (patch)
tree23bded119a83efe5bf7f60cd5d143aa0ca4c8a48 /core/Command/App
parent323eb2e8baa556ad52ba1202e992a982433a1f1b (diff)
downloadnextcloud-server-84f6477ce551a9fe69150acaf0158651c644cf58.tar.gz
nextcloud-server-84f6477ce551a9fe69150acaf0158651c644cf58.zip
enable app by default after occ app:install
Signed-off-by: Klaus Herberth <klaus@jsxc.org>
Diffstat (limited to 'core/Command/App')
-rw-r--r--core/Command/App/Install.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Command/App/Install.php b/core/Command/App/Install.php
index 95c8d2ec755..4432a1f40ac 100644
--- a/core/Command/App/Install.php
+++ b/core/Command/App/Install.php
@@ -41,10 +41,10 @@ class Install extends Command {
'install the specified app'
)
->addOption(
- 'enable',
+ 'keep-disabled',
null,
InputOption::VALUE_NONE,
- 'enable the app afterwards'
+ 'don\'t enable the app afterwards'
)
;
}
@@ -73,7 +73,7 @@ class Install extends Command {
$output->writeln($appId . ' installed');
- if ($input->getOption('enable')) {
+ if (!$input->getOption('keep-disabled')) {
$appClass = new \OC_App();
$appClass->enable($appId);
$output->writeln($appId . ' enabled');