#!/usr/bin/env bash # On the staging VM, as stg, after trust.sh (plan 0047): one stand-up rental as a throwaway account, with the default market # policies, as the th driver account (accounts.sh). Usage: probe.sh set -euo pipefail . "$(dirname "$0")/accounts.sh" name=$1 account=$(cut -d' ' -f"$2" <<<"$STG_DRIVERS") [ -n "$account" ] || { echo "probe.sh: no driver account $2 (accounts.sh)" >&2; exit 2; } S=${SWC:-/home/stg/stg/socialweb-computer-linux-amd64} C=${SWC_CREDS:-/home/stg} D=${SWC_DIR:-/home/stg/stg} h=$(jq -r --arg a "$account" '.[$a].handle' "$D/accounts.json") ATPROTO_PASSWORD=$(sed -n 's/^ATPROTO_PASSWORD=//p' "$C/creds-$account") exec "$S" run request --network stg --state-dir /home/stg/stg/s \ --name "$name" --atproto-identity-mode pdsAccount --atproto-handle "$h" --exec -- hostname