Merge pull request #24132 from owncloud/fix-web-updater
Fix web updater
This commit is contained in:
commit
7e2a1656f9
|
@ -37,13 +37,13 @@ $eventSource = \OC::$server->createEventSource();
|
||||||
// need to send an initial message to force-init the event source,
|
// need to send an initial message to force-init the event source,
|
||||||
// which will then trigger its own CSRF check and produces its own CSRF error
|
// which will then trigger its own CSRF check and produces its own CSRF error
|
||||||
// message
|
// message
|
||||||
//$eventSource->send('success', (string)$l->t('Preparing update'));
|
$eventSource->send('success', (string)$l->t('Preparing update'));
|
||||||
|
|
||||||
if (OC::checkUpgrade(false)) {
|
if (OC::checkUpgrade(false)) {
|
||||||
|
|
||||||
$config = \OC::$server->getSystemConfig();
|
$config = \OC::$server->getSystemConfig();
|
||||||
if ($config->getValue('upgrade.disable-web', true)) {
|
if ($config->getValue('upgrade.disable-web', false)) {
|
||||||
$eventSource->send('failure', (string)$l->t('Updates need to be installed. Please use the command line updater.'));
|
$eventSource->send('failure', (string)$l->t('Please use the command line updater because automatic updating is disabled in the config.php.'));
|
||||||
$eventSource->close();
|
$eventSource->close();
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue