update.use-cli.php 1.6 KB

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