summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-04-27 11:00:16 +0200
committerGitHub <noreply@github.com>2020-04-27 11:00:16 +0200
commita64681a0fed38eb1652ddf3dd9aeeefb2a021f11 (patch)
tree9107dc4e399efb666817ee1358e8e722e4d166e9 /core
parent9b7e24a7a1c1059c7f2a0568b2d5c29f512618f8 (diff)
parent6b62bef928cbe392f19e2bbaabff5b17d133e6a9 (diff)
downloadnextcloud-server-a64681a0fed38eb1652ddf3dd9aeeefb2a021f11.tar.gz
nextcloud-server-a64681a0fed38eb1652ddf3dd9aeeefb2a021f11.zip
Merge pull request #19514 from sndrr/already-enabled-apps
Already enabled apps
Diffstat (limited to 'core')
-rw-r--r--core/Command/App/Enable.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Command/App/Enable.php b/core/Command/App/Enable.php
index c4e2363def5..d82a71d9eb4 100644
--- a/core/Command/App/Enable.php
+++ b/core/Command/App/Enable.php
@@ -105,6 +105,10 @@ class Enable extends Command implements CompletionAwareInterface {
return $group->getDisplayName();
}, $groupIds);
+ if ($this->appManager->isInstalled($appId) && $groupIds === []) {
+ $output->writeln($appId . ' already enabled');
+ return;
+ }
try {
/** @var Installer $installer */