summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-03-10 08:21:31 +0100
committerJoas Schilling <coding@schilljs.com>2022-03-10 16:10:25 +0100
commita4111d4846d1b77e4add0d9d60fb52b633f115d6 (patch)
treed9490029f0f59a3dc9109d203700ca7d5a8baa5d
parent430bd6b1e2f52faf9c9876ab7666b4032030dca9 (diff)
downloadnextcloud-server-a4111d4846d1b77e4add0d9d60fb52b633f115d6.tar.gz
nextcloud-server-a4111d4846d1b77e4add0d9d60fb52b633f115d6.zip
Allow installing unstable versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--core/Command/App/Install.php8
1 files changed, 7 insertions, 1 deletions
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());