diff --git a/core/css/guest.css b/core/css/guest.css index 689eb45d65..cf9bec50dc 100644 --- a/core/css/guest.css +++ b/core/css/guest.css @@ -178,6 +178,17 @@ input.updateButton, input.update-continue { padding: 10px 20px; /* larger log in and installation buttons */ } +.updateAnyways a.updateAnywaysButton { + font-size: 14px; + padding: 10px 20px; + color: #666 !important; + display: inline-block; + border-radius: 3px; + margin: 15px 5px; +} +.updateAnyways a.updateAnywaysButton:hover { + color: #222 !important; +} input.primary, button.primary { border: 1px solid #0082c9; @@ -442,6 +453,9 @@ form #selectDbType label.ui-state-active { border-radius: 3px; cursor: default; } +.warning.updateAnyways { + text-align: center; +} .warning legend, .warning a, .error a { diff --git a/core/templates/update.use-cli.php b/core/templates/update.use-cli.php index 9fbdbca8b2..d30e15c857 100644 --- a/core/templates/update.use-cli.php +++ b/core/templates/update.use-cli.php @@ -11,4 +11,13 @@ print_unescaped($l->t('For help, see the documentation.', [link_to_docs('admin-cli-upgrade')])); ?>

+ + +
+ t('I know that if I continue doing the update via web UI has the risk, that the request runs into a timeout and could cause data loss, but I have a backup and know how to restore my instance in case of a failure.' )); ?> + t('Upgrade via web on my own risk' )); ?> +
+ + + diff --git a/lib/base.php b/lib/base.php index 483cd65691..0a51d3af5f 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');