All checks were successful
Deploy / deploy (push) Successful in 12s
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>
17 lines
496 B
Bash
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 "$@"
|