fix: add login.sh helper and graceful not-logged-in handling in entrypoint
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
# login.sh — Run this once to authenticate obsidian-headless.
|
||||
# Starts a temporary container just for login.
|
||||
# The session is saved to ./config and persists into the main container.
|
||||
|
||||
set -e
|
||||
|
||||
echo "Starting temporary login container..."
|
||||
echo ""
|
||||
|
||||
docker-compose run --rm \
|
||||
--entrypoint "ob" \
|
||||
obsidian-sync login
|
||||
|
||||
echo ""
|
||||
echo "Login complete. You can now start the sync server:"
|
||||
echo " docker-compose up -d"
|
||||
Reference in New Issue
Block a user