0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-01-28 16:28:27 +01:00

Update README.md to mention occ wrapper script

Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
This commit is contained in:
Daniel Rudolf 2024-01-14 13:03:48 +01:00
parent da1c4fe6d3
commit 0df09c7e14
No known key found for this signature in database
GPG key ID: A061F02CD8DE4538

View file

@ -105,13 +105,13 @@ If mounting additional volumes under `/var/www/html`, you should consider:
## Using the Nextcloud command-line interface
To use the [Nextcloud command-line interface](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html) (aka. `occ` command):
To use the [Nextcloud command-line interface](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html) (aka. `occ` command), you can use a simple wrapper script provided by the Nextcloud image dealing with permissions:
```console
$ docker exec --user www-data CONTAINER_ID php occ
$ docker exec CONTAINER_ID occ
```
or for docker-compose:
```console
$ docker-compose exec --user www-data app php occ
$ docker-compose exec app occ
```
## Auto configuration via environment variables