diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-18 19:50:25 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-18 19:50:25 +0200 |
commit | 4c59ee033c9b3ff2e48da8d15141d11f15c5c5c3 (patch) | |
tree | 6d69ab00e40628c0d750588cd55931223526fea1 /core/ajax | |
parent | 92dfb4e926f8da72758855a26e7af685bff0f551 (diff) | |
parent | 739dfb5c6638301799ee8dafd6b10460b493319d (diff) | |
download | nextcloud-server-4c59ee033c9b3ff2e48da8d15141d11f15c5c5c3.tar.gz nextcloud-server-4c59ee033c9b3ff2e48da8d15141d11f15c5c5c3.zip |
Merge pull request #23922 from owncloud/upgrade-only-with-cli-for-big-installations
Suggest cli based updater in case the instance is bigger
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/update.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 631a8a7871c..cf6e2659516 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -37,9 +37,17 @@ $eventSource = \OC::$server->createEventSource(); // 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 // message -$eventSource->send('success', (string)$l->t('Preparing update')); +//$eventSource->send('success', (string)$l->t('Preparing update')); if (OC::checkUpgrade(false)) { + + $config = \OC::$server->getSystemConfig(); + if ($config->getValue('upgrade.disable-web', true)) { + $eventSource->send('failure', (string)$l->t('Updates need to be installed. Please use the command line updater.')); + $eventSource->close(); + exit(); + } + // if a user is currently logged in, their session must be ignored to // avoid side effects \OC_User::setIncognitoMode(true); |