Files
obsidian-sync-server/login.sh
T

18 lines
430 B
Bash
Executable File

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