Allow installing unstable versions

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-03-10 08:21:31 +01:00
parent 430bd6b1e2
commit a4111d4846
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -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());