NS8 execute occ nextcloud

Good evening,

I need to run commands on nextcloud

example:

sudo -u www-data php occ app:list

tnk

Enter the Nextcloud environment: (in this example the app instance is named nextcloud1)

runagent -m nextcloud1

Run occ in the container, for example list users:

podman exec -it -u 82 nextcloud-app /var/www/html/occ user:list

4 Likes

It is even simpler with:

runagent -m nextcloud1 occ user:list

There’s an occ helper/wrapper in the app :wink:

3 Likes

That’s nice, it’s documented here: GitHub - NethServer/ns8-nextcloud: Nextcloud module for NS8

2 Likes

Thank you for the link, I updated the example still referring to the old style “ssh+runagent”.

1 Like

Thanks everyone, it worked