Vanguard media stack: ingest, copyparty, Syncthing, normalize sweep, Authentik, Jellyfin + Vanguard Metadata plugin, MariaDB, Gitea, bot runtime

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 15:43:30 -05:00
commit c602a6ff52
66 changed files with 4229 additions and 0 deletions

15
createGiteaDb.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Fallback for a MariaDB that was initialised before Gitea was added: create the gitea db/user now.
set -euo pipefail
cd "$(dirname "$0")"
ROOT=$(grep -E '^MARIADB_ROOT_PASSWORD=' .env | cut -d= -f2-)
PW=$(grep -E '^GITEA_DB_PASSWORD=' .env | cut -d= -f2-)
[[ -n $ROOT && -n $PW ]] || { echo "MARIADB_ROOT_PASSWORD / GITEA_DB_PASSWORD missing in .env — run ./configure.py and apply first"; exit 1; }
docker exec -i mariadb mariadb -uroot -p"$ROOT" <<SQL
CREATE DATABASE IF NOT EXISTS gitea CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER IF NOT EXISTS 'gitea'@'%' IDENTIFIED BY '${PW}';
ALTER USER 'gitea'@'%' IDENTIFIED BY '${PW}';
GRANT ALL PRIVILEGES ON gitea.* TO 'gitea'@'%';
FLUSH PRIVILEGES;
SQL
echo "gitea db/user ready; now: docker compose up -d gitea"