Files
minimal-setups/content/snippets/0130-occ-in-nextcloud-pod.md
Wolfgang Hottgenroth b2249c06e9
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
mdwiki test starts
2025-04-14 22:22:45 +02:00

20 lines
315 B
Markdown

<!--
title: Execute occ in Nextcloud pod
-->
First, look up the name of the pod using
```
kubectl get pods -n nextcloud
```
Then, get into the pod using
```
kubectl exec --stdin --tty NAME_OF_THE_POD -c nextcloud -n nextcloud -- sh
```
Finally, within the pod
```
su -s /bin/sh www-data -c "php occ --help"
```