Skip to content

Commit 72e8241

Browse files
authored
Merge pull request #49914 from nextcloud/occ-upgrade-wording
fix: improve wording of occ:upgrade command when no upgrade is required
2 parents b16f5a0 + 314955a commit 72e8241

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/Command/Upgrade.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use OCP\EventDispatcher\Event;
2121
use OCP\EventDispatcher\IEventDispatcher;
2222
use OCP\IConfig;
23+
use OCP\IURLGenerator;
2324
use OCP\Util;
2425
use Symfony\Component\Console\Command\Command;
2526
use Symfony\Component\Console\Helper\ProgressBar;
@@ -36,6 +37,7 @@ class Upgrade extends Command {
3637

3738
public function __construct(
3839
private IConfig $config,
40+
private IURLGenerator $urlGenerator,
3941
) {
4042
parent::__construct();
4143
}
@@ -205,7 +207,11 @@ function ($success) use ($output, $self) {
205207
. 'config.php and call this script again.</comment>', true);
206208
return self::ERROR_MAINTENANCE_MODE;
207209
} else {
208-
$output->writeln('<info>Nextcloud is already latest version</info>');
210+
$output->writeln('<info>No upgrade required.</info>');
211+
$output->writeln('');
212+
$output->writeln('Note: This command triggers the upgrade actions associated with a new version. The new version\'s updated source files must be deployed in advance.');
213+
$doc = $this->urlGenerator->linkToDocs('admin-update');
214+
$output->writeln('See the upgrade documentation: ' . $doc . ' for more information.');
209215
return self::ERROR_UP_TO_DATE;
210216
}
211217
}

0 commit comments

Comments
 (0)