Files
outline-sync/entrypoint.sh
domverse 41b126947a
All checks were successful
Deploy / deploy (push) Successful in 12s
fix: write local instance config to settings.json from env vars
Adds LOCAL_OUTLINE_URL and LOCAL_OUTLINE_TOKEN to the generated
settings.json so the compare command can reach the outline-web container.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 23:41:57 +01:00

17 lines
496 B
Bash

#!/bin/sh
set -e
# Generate settings.json from environment variables at container start.
# OUTLINE_URL and OUTLINE_TOKEN must be set (e.g. via docker-compose env / .env file).
cat > /work/settings.json <<EOF
{
"source": { "url": "${OUTLINE_URL}", "token": "${OUTLINE_TOKEN}" },
"target": { "url": "${OUTLINE_URL}", "token": "${OUTLINE_TOKEN}" },
"local": { "url": "${LOCAL_OUTLINE_URL:-}", "token": "${LOCAL_OUTLINE_TOKEN:-}" },
"sync": { "allow_deletions": false }
}
EOF
exec "$@"