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 cli tool usage? #45

Closed
sundowndev opened this issue Nov 21, 2020 · 1 comment
Closed

occ cli tool usage? #45

sundowndev opened this issue Nov 21, 2020 · 1 comment

Comments

@sundowndev
Copy link

sundowndev commented Nov 21, 2020

I have to log into the pod and run the following command : occ db:add-missing-primary-keys

The thing is, the occ cli tool must be run with www-data user, which has no shell. Kubernetes does not support --user option with exec command. So is there a way to achieve that?

$ ./occ
Console has to be executed with the user that owns the file config/config.php
Current user id: 0
Owner id of config.php: 33
Try adding 'sudo -u #33' to the beginning of the command (without the single quotes)
If running with 'docker exec' try adding the option '-u 33' to the docker command (without the single quotes)
@sundowndev sundowndev changed the title CLI usage? (occ) occ cli tool usage? Nov 21, 2020
@sundowndev
Copy link
Author

Aight, finally su -s /bin/bash www-data worked as expected.

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

No branches or pull requests

1 participant