#!/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"