Skip to content

Commit

Permalink
pdsadmin/account: little fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob2161 committed Feb 22, 2024
1 parent a1dbeb2 commit 9d35006
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pdsadmin/account.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@ elif [[ "${SUBCOMMAND}" == "create" ]]; then
exit 1
fi

# Wait for the TLS certificate to be issued.
HANDLE_WELLKNOWN_URL="https://${handle}/.well-known/atproto-did"
echo "* Obtaining TLS certificate"
while true; do
echo "Requesting ${HANDLE_WELLKNOWN_URL}"
if curl_get "${HANDLE_WELLKNOWN_URL}" >/dev/null 2>&1; then
break
fi
sleep 0.5
done

echo
echo "Account created successfully!"
echo "-----------------------------"
Expand Down

0 comments on commit 9d35006

Please sign in to comment.