apps
adguard
finance
homarr
homeassistant
immich
media
monitoring
nextcloud
README.md
ingress.yaml
kustomization.yaml
namespace.yaml
postgres.sealedsecret.yaml
pvc.yaml
readme.md
values.yaml
ntfy
rss
syncthing
whoami
infrastructure
kluster-deployments
.gitignore
.gitmodules
README.md
renovate.json
649 B
649 B
Running occ commands
Sometimes you need to run a command on the Nextcloud container directly. You can do that by running commands as the user www-data via the kubectl exec command.
# $NEXTCLOUD_POD should be the name of *your* nextcloud pod :)
kubectl exec $NEXTCLOUD_POD -- su -s /bin/sh www-data -c "php occ myocccomand"
Here are some examples below. Putting Nextcloud into maintanence mode
Some admin actions require you to put your Nextcloud instance into
(e.g. backups):
# $NEXTCLOUD_POD should be the name of *your* nextcloud pod :)
kubectl exec $NEXTCLOUD_POD -- su -s /bin/sh www-data -c "php occ maintenance:mode --on"