From a4111d4846d1b77e4add0d9d60fb52b633f115d6 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 10 Mar 2022 08:21:31 +0100 Subject: Allow installing unstable versions Signed-off-by: Joas Schilling --- core/Command/App/Install.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'core/Command') diff --git a/core/Command/App/Install.php b/core/Command/App/Install.php index 30fd96a95b1..a699a2e7af0 100644 --- a/core/Command/App/Install.php +++ b/core/Command/App/Install.php @@ -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()); -- cgit v1.2.3