diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-05-15 14:28:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-15 14:28:28 +0200 |
commit | 8e7cff2eac4e75eaac43911ec785a42b1f815561 (patch) | |
tree | 27bfacb929fcae7508029efa76a5e69cf5661717 /lib | |
parent | bf0d966c7ac11e010f3ee45d0a2ad821b40e5fc2 (diff) | |
parent | 3fa604cc5edad8efae30cb33b13e3a23ee2494fd (diff) | |
download | nextcloud-server-8e7cff2eac4e75eaac43911ec785a42b1f815561.tar.gz nextcloud-server-8e7cff2eac4e75eaac43911ec785a42b1f815561.zip |
Merge pull request #4805 from nextcloud/enforce-upgrade-for-big-instances
Allow to enforce update via web UI
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 483cd656916..0a51d3af5fc 100644 --- a/lib/base.php +++ b/lib/base.php @@ -343,7 +343,10 @@ class OC { $tooBig = ($totalUsers > 50); } } - if ($disableWebUpdater || $tooBig) { + $ignoreTooBigWarning = isset($_GET['IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup']) && + $_GET['IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup'] === 'IAmSuperSureToDoThis'; + + if ($disableWebUpdater || ($tooBig && !$ignoreTooBigWarning)) { // send http status 503 header('HTTP/1.1 503 Service Temporarily Unavailable'); header('Status: 503 Service Temporarily Unavailable'); |