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

Request: Add occ to PATH #2285

Open
major-mayer opened this issue Aug 29, 2024 · 2 comments
Open

Request: Add occ to PATH #2285

major-mayer opened this issue Aug 29, 2024 · 2 comments

Comments

@major-mayer
Copy link

I think it would be very convenient if this Docker container could add the occ CLI to the PATH variable.
This way you could execute it from whichever directory you currently are and you could directly copy statements that are shown on the admin page without prepending a ./ ... to them.
An example:

One or more mimetype migrations are available. Occasionally new mimetypes are added to better handle certain file types. Migrating the mimetypes take a long time on larger instances so this is not done automatically during upgrades. Use the command `occ maintenance:repair --include-expensive` to perform the migrations.
@tzerber
Copy link
Contributor

tzerber commented Sep 16, 2024

I've always used php occ do:stuff and never had any issues.
If you really wish to add occ to path just add to compose file in the nextcloud service section the following:

    environment:
      - PATH=/var/www/html:$PATH

@major-mayer
Copy link
Author

I am aware that I could add this to my compose file (I will probably do in the future), but I thought that maybe this could be useful for others as well.
That's why I opened this issue.

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

2 participants