mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Allow installing unstable versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
430bd6b1e2
commit
a4111d4846
1 changed files with 7 additions and 1 deletions
|
|
@ -56,6 +56,12 @@ class Install extends Command {
|
|||
InputOption::VALUE_NONE,
|
||||
'install the app regardless of the Nextcloud version requirement'
|
||||
)
|
||||
->addOption(
|
||||
'allow-unstable',
|
||||
null,
|
||||
InputOption::VALUE_NONE,
|
||||
'allow installing an unstable releases'
|
||||
)
|
||||
;
|
||||
}
|
||||
|
||||
|
|
@ -71,7 +77,7 @@ class Install extends Command {
|
|||
try {
|
||||
/** @var Installer $installer */
|
||||
$installer = \OC::$server->query(Installer::class);
|
||||
$installer->downloadApp($appId);
|
||||
$installer->downloadApp($appId, $input->getOption('allow-unstable'));
|
||||
$result = $installer->installApp($appId, $forceEnable);
|
||||
} catch (\Exception $e) {
|
||||
$output->writeln('Error: ' . $e->getMessage());
|
||||
|
|
|
|||
Loading…
Reference in a new issue