aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates/update.use-cli.php
blob: a13dd2f51f12d2fc94e7d8821ce66972792c6c63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
 * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
 * SPDX-License-Identifier: AGPL-3.0-only
 */
?>
<div class="guest-box update" data-productname="<?php p($_['productName']) ?>" data-version="<?php p($_['version']) ?>">
	<div class="updateOverview">
		<h2 class="title"><?php p($l->t('Update needed')) ?></h2>
		<div class="text-left">
			<?php if ($_['tooBig']) {
				p($l->t('Please use the command line updater because you have a big instance with more than 50 accounts.'));
			} else {
				p($l->t('Please use the command line updater because updating via browser is disabled in your config.php.'));
			} ?><br><br>
			<?php if (is_string($_['cliUpgradeLink']) && $_['cliUpgradeLink'] !== '') {
				$cliUpgradeLink = $_['cliUpgradeLink'];
			} else {
				$cliUpgradeLink = link_to_docs('admin-cli-upgrade');
			}
print_unescaped($l->t('For help, see the  <a target="_blank" rel="noreferrer noopener" href="%s">documentation</a>.', [$cliUpgradeLink])); ?>
		</div>
	</div>

	<?php if ($_['tooBig']) { ?>
		<div class="notecard warning">
			<p><?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.')); ?></p>
			<a class="button error margin-top" href="?IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup=IAmSuperSureToDoThis"><?php p($l->t('Upgrade via web on my own risk')); ?></a>
		</div>
	<?php } ?>
</div>