Files
checkbot/deploy/checkbot-cli
T
patrickandClaude Sonnet 5.5 f34fc6d686 feat: Ausgangslog für Messenger-Nachrichten
- LoggingAdapter protokolliert send/edit (Matrix zusätzlich reply) inkl. Fehlversuche
- Tabelle outbound_log (Migration 10), Aufbewahrung retention.outbound_days (30 Tage)
- Seite /messages und CLI checkbot messages mit Filtern
- Text gekappt (4000) und Secrets maskiert

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 23:38:07 +01:00

15 lines
561 B
Bash
Executable File

#!/usr/bin/env bash
# Startet "python -m app.cli" als Benutzer checkbot mit den Pfaden des Betriebs, z.B. checkbot-cli set-password alice.
set -euo pipefail
SELF=$(readlink -f "${BASH_SOURCE[0]}")
# shellcheck source=lib/common.sh
source "$(dirname "$SELF")/lib/common.sh"
require_root
[[ $# -gt 0 ]] || die "Aufruf: checkbot-cli <create-admin|set-password|messages> [Argumente]"
cd "$APP_DIR"
exec runuser -u "$APP_USER" -- env \
CHECKBOT_CONFIG_DIR="$CONF_DIR" CHECKBOT_DB="$(db_file)" PYTHONDONTWRITEBYTECODE=1 \
"$VENV_DIR/bin/python" -m app.cli "$@"