Merge pull request #59522 from nextcloud/bugfix/noid/make-maintenance-mode-more-obvious

fix(updater): Make "maintenance mode kept active" more obvious
This commit is contained in:
Joas Schilling 2026-04-09 10:37:44 +02:00 committed by GitHub
commit 9ff0adf239
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -140,7 +140,7 @@ class Upgrade extends Command {
$output->writeln('<info>Turned off maintenance mode</info>');
});
$updater->listen('\OC\Updater', 'maintenanceActive', function () use ($output): void {
$output->writeln('<info>Maintenance mode is kept active</info>');
$output->writeln('<comment>Maintenance mode is kept active</comment>');
});
$updater->listen('\OC\Updater', 'updateEnd',
function ($success) use ($output, $self): void {

View file

@ -82,7 +82,7 @@ if (Util::needUpgrade()) {
$eventSource->send('success', $l->t('Turned off maintenance mode'));
});
$updater->listen('\OC\Updater', 'maintenanceActive', function () use ($eventSource, $l): void {
$eventSource->send('success', $l->t('Maintenance mode is kept active'));
$eventSource->send('notice', $l->t('Maintenance mode is kept active'));
});
$updater->listen('\OC\Updater', 'dbUpgradeBefore', function () use ($eventSource, $l): void {
$eventSource->send('success', $l->t('Updating database schema'));