Good evening,
I need to run commands on nextcloud
example:
sudo -u www-data php occ app:list
tnk
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
It is even simpler with:
runagent -m nextcloud1 occ user:list
There’s an occ
helper/wrapper in the app
That’s nice, it’s documented here: GitHub - NethServer/ns8-nextcloud: Nextcloud module for NS8
Thank you for the link, I updated the example still referring to the old style “ssh+runagent”.
Thanks everyone, it worked