Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

occ doesn't support enabling/disabling multiple apps at once #11274

Closed
robert-scheck opened this issue Sep 18, 2018 · 3 comments
Closed

occ doesn't support enabling/disabling multiple apps at once #11274

robert-scheck opened this issue Sep 18, 2018 · 3 comments

Comments

@robert-scheck
Copy link
Contributor

As of Nextcloud 14.0.0, occ still doesn't support enabling/disabling multiple apps at once:

$ ./occ --no-interaction app:enable richdocuments spreed

                                                              
  Too many arguments, expected arguments "command" "app-id".  
                                                              

app:enable [-g|--groups GROUPS] [--] <app-id>

$
$ ./occ --no-interaction app:disable richdocuments spreed

                                                              
  Too many arguments, expected arguments "command" "app-id".  
                                                              

app:disable <app-id>

$ 

Given that usage of occ is just slow (~ 0.75-1.25 seconds here), enabling/disabling apps takes a lot of time, especially in containers where e.g. some apps always should be (re-)enabled.

$ time ./occ --no-interaction app:enable richdocuments
richdocuments enabled

real	0m1.167s
user	0m0.632s
sys	0m0.407s
$ 
$ time ./occ --no-interaction app:disable richdocuments
richdocuments disabled

real	0m0.746s
user	0m0.546s
sys	0m0.182s
$ 

Yes, you could perform the steps on the database directly, but that likely isn't supported nor future-safe.

@robert-scheck
Copy link
Contributor Author

robert-scheck commented Sep 18, 2018

This suggestion could be maybe less relevant if #11275 is being implemented instead, nevertheless it would be definitely nice to have the ability to specify multiple apps in a row.

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #8038 ("Your apps" does not indicate enabled/disabled apps), #7865 (Do not disable shipped apps on exceptions), #5928 (Support for multiple primary storage?), #6347 (Cannot enable External storage support), and #239 (Re-enable disabled »Official« apps during update).

@carloscomputer
Copy link

With the latest upgrade to 24.0.4 I got an error something went not good while upgrading, out of my experience it's belonging to apps they are not supporting the newer versions of Nextcloud. I was looking for a way to deactivate them all in one command.

  1. sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off
  2. I did a list sudo -u www-data php /var/www/nextcloud/occ app:list >> ~/app.list
  3. I edit the list and took out all the version numbers and listing singes
  4. I wehre running the list througt a variable with for i in $(cat ~/app.list) do sudo -u www-data php /var/www/nextcloud/occ app:disable $i; done
  5. and than sudo -u www-data php /var/www/nextcloud/occ upgrade agian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants