#!/usr/bin/env sh # One command: create config.json (and a first agent with its key) on first run, then start Quarry. set -e cd "$(dirname "$0")" if [ ! -f config.json ]; then cp config.example.json config.json echo "created config.json from config.example.json" python3 server.py --config config.json add-agent "${QUARRY_FIRST_AGENT:-my-agent}" fi exec python3 server.py --config config.json