diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-03-11 16:26:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 16:26:30 +0300 |
commit | db1c2a5375d5a21aaaf35615b247c0e0f33a815e (patch) | |
tree | 5551b16a62ee36ff61641552c5406af1e0b91f82 /core/Command | |
parent | 4ac4f4b0a6c4b00039b22dcc800551dd50006d08 (diff) | |
parent | 21f96308c4966b468eba4e75dabe49977d52be3f (diff) |
Merge pull request #31511 from nextcloud/bugfix/noid/allow-installing-unstable-versions
Allow installing unstable app versions based on channel and with `--allow-unstable` just like on updates
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/App/Install.php | 8 |
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()); |