Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Nextcloud
server
Commits
67a76b00
Unverified
Commit
67a76b00
authored
Feb 26, 2018
by
Morris Jobke
Committed by
GitHub
Feb 26, 2018
Browse files
Options
Downloads
Plain Diff
Merge pull request #6481 from nextcloud/occ-app-install-enable
add enable flag to occ app:install
parents
950e7e04
84f6477c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/Command/App/Install.php
+13
-0
13 additions, 0 deletions
core/Command/App/Install.php
with
13 additions
and
0 deletions
core/Command/App/Install.php
+
13
−
0
View file @
67a76b00
...
@@ -25,6 +25,7 @@ namespace OC\Core\Command\App;
...
@@ -25,6 +25,7 @@ namespace OC\Core\Command\App;
use
OC\Installer
;
use
OC\Installer
;
use
Symfony\Component\Console\Command\Command
;
use
Symfony\Component\Console\Command\Command
;
use
Symfony\Component\Console\Input\InputArgument
;
use
Symfony\Component\Console\Input\InputArgument
;
use
Symfony\Component\Console\Input\InputOption
;
use
Symfony\Component\Console\Input\InputInterface
;
use
Symfony\Component\Console\Input\InputInterface
;
use
Symfony\Component\Console\Output\OutputInterface
;
use
Symfony\Component\Console\Output\OutputInterface
;
...
@@ -39,6 +40,12 @@ class Install extends Command {
...
@@ -39,6 +40,12 @@ class Install extends Command {
InputArgument
::
REQUIRED
,
InputArgument
::
REQUIRED
,
'install the specified app'
'install the specified app'
)
)
->
addOption
(
'keep-disabled'
,
null
,
InputOption
::
VALUE_NONE
,
'don\'t enable the app afterwards'
)
;
;
}
}
...
@@ -66,6 +73,12 @@ class Install extends Command {
...
@@ -66,6 +73,12 @@ class Install extends Command {
$output
->
writeln
(
$appId
.
' installed'
);
$output
->
writeln
(
$appId
.
' installed'
);
if
(
!
$input
->
getOption
(
'keep-disabled'
))
{
$appClass
=
new
\OC_App
();
$appClass
->
enable
(
$appId
);
$output
->
writeln
(
$appId
.
' enabled'
);
}
return
0
;
return
0
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment