diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-11 06:26:51 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-05-11 18:22:44 +0300 |
commit | 3fa604cc5edad8efae30cb33b13e3a23ee2494fd (patch) | |
tree | 6f1b445bcbab3740f850d4288b41a4c06e0e448a /core | |
parent | 23b6f0e4d72f0a70eec9b4ba69ba9e5a0cb72731 (diff) |
Allow to enforce update via web UI
* adds a disclaimer that an update via web UI is on own risk
* allows to skip the warning
* fixes #4353
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/css/guest.css | 14 | ||||
-rw-r--r-- | core/templates/update.use-cli.php | 9 |
2 files changed, 23 insertions, 0 deletions
diff --git a/core/css/guest.css b/core/css/guest.css index 689eb45d65f..cf9bec50dc3 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 9fbdbca8b21..d30e15c8573 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 <a target="_blank" rel="noreferrer" href="%s">documentation</a>.', [link_to_docs('admin-cli-upgrade')])); ?><br><br> </div> </div> + + <?php if ($_['tooBig']) { ?> + <div class="warning updateAnyways"> + <?php p($l->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.' )); ?> + <a href="?IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup=IAmSuperSureToDoThis" class="button updateAnywaysButton"><?php p($l->t('Upgrade via web on my own risk' )); ?></a> + </div> + <?php } ?> + + </div> |