Simplify to named volumes only (cattle not pets)

This commit is contained in:
Klaatu
2026-02-20 18:56:03 +00:00
parent e4215ca329
commit 3df8a2143e
4 changed files with 33 additions and 48 deletions

View File

@@ -1,14 +1,15 @@
#!/bin/bash
# setup-gog.sh - Initialize gog with credentials from volume
# Run this after container starts and secrets are mounted
# Usage: docker cp client_secret.json container:/home/node/.openclaw/
# docker exec container setup-gog.sh
set -e
CREDS_FILE="/data/secrets/google-client-secret.json"
CREDS_FILE="/home/node/.openclaw/google-client-secret.json"
if [ ! -f "$CREDS_FILE" ]; then
echo "ERROR: Google client secret not found at $CREDS_FILE"
echo "Mount your secrets JSON to /data/secrets/google-client-secret.json"
echo "Copy it in first: docker cp client_secret.json \$(docker ps -q -f name=openclaw):/home/node/.openclaw/google-client-secret.json"
exit 1
fi