Browse Source
Do not disable 3rdparty apps on occ upgrade
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/4570/head
Morris Jobke
9 years ago
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with
3 additions and
7 deletions
-
core/Command/Upgrade.php
|
|
|
@ -87,12 +87,6 @@ class Upgrade extends Command { |
|
|
|
*/ |
|
|
|
protected function execute(InputInterface $input, OutputInterface $output) { |
|
|
|
|
|
|
|
$skip3rdPartyAppsDisable = false; |
|
|
|
|
|
|
|
if ($input->getOption('no-app-disable')) { |
|
|
|
$skip3rdPartyAppsDisable = true; |
|
|
|
} |
|
|
|
|
|
|
|
if(\OC::checkUpgrade(false)) { |
|
|
|
if (OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) { |
|
|
|
// Prepend each line with a little timestamp
|
|
|
|
@ -107,7 +101,9 @@ class Upgrade extends Command { |
|
|
|
$this->logger |
|
|
|
); |
|
|
|
|
|
|
|
$updater->setSkip3rdPartyAppsDisable($skip3rdPartyAppsDisable); |
|
|
|
if ($input->getOption('no-app-disable')) { |
|
|
|
$updater->setSkip3rdPartyAppsDisable(true); |
|
|
|
} |
|
|
|
$dispatcher = \OC::$server->getEventDispatcher(); |
|
|
|
$progress = new ProgressBar($output); |
|
|
|
$progress->setFormat(" %message%\n %current%/%max% [%bar%] %percent:3s%%"); |
|
|
|
|