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>
14 lines
413 B
Bash
14 lines
413 B
Bash
#!/bin/bash
|
|
|
|
# Display-only: tail the last N lines of Nextcloud's data/nextcloud.log.
|
|
# Default 100 lines if the user doesn't specify.
|
|
|
|
appNextcloudTailLogs() {
|
|
local args="$1"
|
|
local lines
|
|
lines="$(authToolArg "$args" lines)"
|
|
[[ -z "$lines" || ! "$lines" =~ ^[0-9]+$ ]] && lines=100
|
|
|
|
runFileOp docker exec -u www-data nextcloud-service tail -n "$lines" /var/www/html/data/nextcloud.log 2>&1
|
|
}
|