enable app by default after occ app:install

Signed-off-by: Klaus Herberth <klaus@jsxc.org>
This commit is contained in:
sualko 2018-02-20 10:54:41 +01:00 committed by Morris Jobke
parent 323eb2e8ba
commit 84f6477ce5
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 3 additions and 3 deletions

View File

@ -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');