|
|
@ -43,9 +43,10 @@ if (OC::checkUpgrade(false)) { |
|
|
|
\OC_User::setIncognitoMode(true); |
|
|
|
\OC_User::setIncognitoMode(true); |
|
|
|
|
|
|
|
|
|
|
|
$logger = \OC::$server->getLogger(); |
|
|
|
$logger = \OC::$server->getLogger(); |
|
|
|
|
|
|
|
$config = \OC::$server->getConfig(); |
|
|
|
$updater = new \OC\Updater( |
|
|
|
$updater = new \OC\Updater( |
|
|
|
\OC::$server->getHTTPHelper(), |
|
|
|
\OC::$server->getHTTPHelper(), |
|
|
|
\OC::$server->getConfig(), |
|
|
|
$config, |
|
|
|
$logger |
|
|
|
$logger |
|
|
|
); |
|
|
|
); |
|
|
|
$incompatibleApps = []; |
|
|
|
$incompatibleApps = []; |
|
|
@ -96,10 +97,10 @@ if (OC::checkUpgrade(false)) { |
|
|
|
$updater->listen('\OC\Updater', 'thirdPartyAppDisabled', function ($app) use (&$disabledThirdPartyApps) { |
|
|
|
$updater->listen('\OC\Updater', 'thirdPartyAppDisabled', function ($app) use (&$disabledThirdPartyApps) { |
|
|
|
$disabledThirdPartyApps[]= $app; |
|
|
|
$disabledThirdPartyApps[]= $app; |
|
|
|
}); |
|
|
|
}); |
|
|
|
$updater->listen('\OC\Updater', 'failure', function ($message) use ($eventSource) { |
|
|
|
$updater->listen('\OC\Updater', 'failure', function ($message) use ($eventSource, $config) { |
|
|
|
$eventSource->send('failure', $message); |
|
|
|
$eventSource->send('failure', $message); |
|
|
|
$eventSource->close(); |
|
|
|
$eventSource->close(); |
|
|
|
OC_Config::setValue('maintenance', false); |
|
|
|
$config->setSystemValue('maintenance', false); |
|
|
|
}); |
|
|
|
}); |
|
|
|
$updater->listen('\OC\Updater', 'setDebugLogLevel', function ($logLevel, $logLevelName) use($eventSource, $l) { |
|
|
|
$updater->listen('\OC\Updater', 'setDebugLogLevel', function ($logLevel, $logLevelName) use($eventSource, $l) { |
|
|
|
$eventSource->send('success', (string)$l->t('Set log level to debug - current level: "%s"', [ $logLevelName ])); |
|
|
|
$eventSource->send('success', (string)$l->t('Set log level to debug - current level: "%s"', [ $logLevelName ])); |
|
|
|