Running Nextcloud OCC in kubernetes container

Published

Just a short one, which I used a while to figure out myself. One straight forward way to run the Nextcloud occ command, when you are running in a kubernetes cluster. Is to exec into the container as root, and then run

su www-data -s /bin/bash -c "php occ <command>"