Something went wrong. Try again.
Mirror from bluesky-social/pds github.com/bluesky-social/pds
Something went wrong. Try again.
416 B · 17 lines
Shell
at monitoring
123456789101112131415161718#!/usr/bin/env bashset -o errexitset -o nounsetset -o pipefail
PDS_ENV_FILE=${PDS_ENV_FILE:-"/pds/pds.env"}source "${PDS_ENV_FILE}"
curl \ --fail \ --silent \ --show-error \ --request POST \ --user "admin:${PDS_ADMIN_PASSWORD}" \ --header "Content-Type: application/json" \ --data '{"useCount": 1}' \ "https://${PDS_HOSTNAME}/xrpc/com.atproto.server.createInviteCode" | jq --raw-output '.code'