A free, open, self-hosted app platform (GNU AGPLv3): one-click app deploys, Traefik reverse proxy with automatic SSL, rootless Docker support, gluetun VPN routing, and a web dashboard to manage it all. Free & open forever to self-host; optional paid hosted services fund it. See PROMISE.md. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
14 lines
408 B
Bash
14 lines
408 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
|
|
|
|
sudo docker exec -u www-data nextcloud-service tail -n "$lines" /var/www/html/data/nextcloud.log 2>&1
|
|
}
|