This commit is contained in:
19
content/snippets/0130-occ-in-nextcloud-pod.md
Normal file
19
content/snippets/0130-occ-in-nextcloud-pod.md
Normal file
@ -0,0 +1,19 @@
|
||||
<!--
|
||||
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"
|
||||
```
|
Reference in New Issue
Block a user