#!/bin/bash # setup-gog.sh - Initialize gog with credentials from volume # Usage: docker cp client_secret.json container:/home/node/.openclaw/ # docker exec container setup-gog.sh set -e 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 "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 echo "Setting up gog with credentials..." gog auth credentials "$CREDS_FILE" echo "" echo "Available gog accounts:" gog auth list 2>/dev/null || echo "No accounts configured yet." echo "" echo "To add an account, run:" echo " gog auth add you@gmail.com --services gmail,calendar,drive"