summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-05-10 22:26:51 -0500
committerMorris Jobke <hey@morrisjobke.de>2017-05-11 10:22:44 -0500
commit3fa604cc5edad8efae30cb33b13e3a23ee2494fd (patch)
tree6f1b445bcbab3740f850d4288b41a4c06e0e448a /core/templates
parent23b6f0e4d72f0a70eec9b4ba69ba9e5a0cb72731 (diff)
downloadnextcloud-server-3fa604cc5edad8efae30cb33b13e3a23ee2494fd.tar.gz
nextcloud-server-3fa604cc5edad8efae30cb33b13e3a23ee2494fd.zip
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/templates')
-rw-r--r--core/templates/update.use-cli.php9
1 files changed, 9 insertions, 0 deletions
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>