LibrePortal/scripts/app/containers/nextcloud/nextcloud_system_status.sh
librelad 3ecf213cab refactor(de-sudo): docker calls via runFileOp/dockerCommandRun, drop sudo
Container-plane docker now routes through the mode-aware helpers instead of
sudo: simple calls (exec/ps/run/build/images/inspect/port/logs across ~15
app/check scripts) -> runFileOp docker (rootless socket as the install user;
rooted via the docker group). The cd && docker compose paths drop the sudo on
the rooted branch (the rootless branch already used dockerCommandRunInstallUser
-- byte-identical now, manager-ready later); gluetun, which had no rootless
branch, now uses dockerCommandRun so force-recreate works in both modes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
2026-05-24 16:29:22 +01:00

10 lines
298 B
Bash

#!/bin/bash
# Display-only: print Nextcloud's status (version, installed flag, maintenance
# state). The dispatcher captures stdout and the WebUI shows it back in the
# modal results pane.
appNextcloudSystemStatus() {
runFileOp docker exec -u www-data nextcloud-service php occ status 2>&1
}