mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Write upgrade/not-installed notices to stderr
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
7ab39effd3
commit
b8b73fa9e4
1 changed files with 5 additions and 3 deletions
|
|
@ -142,12 +142,14 @@ class Application {
|
|||
}
|
||||
}
|
||||
} elseif ($input->getArgument('command') !== '_completion' && $input->getArgument('command') !== 'maintenance:install') {
|
||||
$output->writeln("Nextcloud is not installed - only a limited number of commands are available");
|
||||
$errorOutput = $output->getErrorOutput();
|
||||
$errorOutput->writeln("Nextcloud is not installed - only a limited number of commands are available");
|
||||
}
|
||||
} catch (NeedsUpdateException $e) {
|
||||
if ($input->getArgument('command') !== '_completion') {
|
||||
$output->writeln("Nextcloud or one of the apps require upgrade - only a limited number of commands are available");
|
||||
$output->writeln("You may use your browser or the occ upgrade command to do the upgrade");
|
||||
$errorOutput = $output->getErrorOutput();
|
||||
$errorOutput->writeln("Nextcloud or one of the apps require upgrade - only a limited number of commands are available");
|
||||
$errorOutput->writeln("You may use your browser or the occ upgrade command to do the upgrade");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue