Request: Add occ to PATH
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.
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
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.
Related: #2126