diff --git a/config/config.sample.php b/config/config.sample.php
index 892f84601e451..c3a15a8a985e2 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -2137,6 +2137,11 @@
*/
'upgrade.disable-web' => false,
+/**
+ * Allows to modify the cli-upgrade link in order to link to a different documentation
+ */
+'upgrade.cli-upgrade-link' => '',
+
/**
* Set this Nextcloud instance to debugging mode
*
diff --git a/core/templates/update.use-cli.php b/core/templates/update.use-cli.php
index 403de7feadcd3..ae82436d2f181 100644
--- a/core/templates/update.use-cli.php
+++ b/core/templates/update.use-cli.php
@@ -5,10 +5,14 @@
t('Please use the command line updater because you have a big instance with more than 50 users.'));
} else {
- p($l->t('Please use the command line updater because automatic updating is disabled in the config.php.'));
+ p($l->t('Please use the command line updater because updating via browser is disabled in your config.php.'));
} ?>
- t('For help, see the documentation.', [link_to_docs('admin-cli-upgrade')])); ?>
+ t('For help, see the documentation.', [$cliUpgradeLink])); ?>
diff --git a/lib/base.php b/lib/base.php
index 32ac60c8c4fae..3cca7ab3a96aa 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -309,6 +309,7 @@ public static function checkMaintenanceMode(\OC\SystemConfig $systemConfig): voi
* Prints the upgrade page
*/
private static function printUpgradePage(\OC\SystemConfig $systemConfig): void {
+ $cliUpgradeLink = $systemConfig->getValue('upgrade.cli-upgrade-link', '');
$disableWebUpdater = $systemConfig->getValue('upgrade.disable-web', false);
$tooBig = false;
if (!$disableWebUpdater) {
@@ -355,6 +356,7 @@ private static function printUpgradePage(\OC\SystemConfig $systemConfig): void {
$template->assign('productName', 'nextcloud'); // for now
$template->assign('version', OC_Util::getVersionString());
$template->assign('tooBig', $tooBig);
+ $template->assign('cliUpgradeLink', $cliUpgradeLink);
$template->printPage();
die();