diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-17 12:00:39 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-24 12:02:36 +0100 |
commit | bbf7f56f949f48ec0cf95d416b431d0cd739582f (patch) | |
tree | adb18b5b46738e81093444ae1fa860e48647373a /core/command | |
parent | e5c6af51027f786d74f859584f0aa6c85db6ead6 (diff) | |
download | nextcloud-server-bbf7f56f949f48ec0cf95d416b431d0cd739582f.tar.gz nextcloud-server-bbf7f56f949f48ec0cf95d416b431d0cd739582f.zip |
3rd-party apps are disabled on upgrade - refs #14026
Diffstat (limited to 'core/command')
-rw-r--r-- | core/command/upgrade.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php index 91e4c3c744a..8899bd50ba7 100644 --- a/core/command/upgrade.php +++ b/core/command/upgrade.php @@ -100,7 +100,8 @@ class Upgrade extends Command { if(\OC::checkUpgrade(false)) { $self = $this; - $updater = new Updater(\OC::$server->getHTTPHelper(), \OC::$server->getAppConfig()); + $updater = new Updater(\OC::$server->getHTTPHelper(), + \OC::$server->getConfig()); $updater->setSimulateStepEnabled($simulateStepEnabled); $updater->setUpdateStepEnabled($updateStepEnabled); @@ -122,8 +123,11 @@ class Upgrade extends Command { $updater->listen('\OC\Updater', 'dbSimulateUpgrade', function () use($output) { $output->writeln('<info>Checked database schema update</info>'); }); - $updater->listen('\OC\Updater', 'disabledApps', function ($appList) use($output) { - $output->writeln('<info>Disabled incompatible apps: ' . implode(', ', $appList) . '</info>'); + $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use($output) { + $output->writeln('<info>Disabled incompatible app: ' . $app . '</info>'); + }); + $updater->listen('\OC\Updater', 'thirdPartyAppDisabled', function ($app) use($output) { + $output->writeln('<info>Disabled 3rd-party app: ' . $app . '</info>'); }); $updater->listen('\OC\Updater', 'failure', function ($message) use($output, $self) { |