Skip to content

Commit

Permalink
Merge pull request #43 from bluesky-social/divy/request-crawl-scheme
Browse files Browse the repository at this point in the history
Correct for scheme in request crawl command
  • Loading branch information
devinivy authored Feb 22, 2024
2 parents 12ea385 + 1aebb60 commit 3810cfb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pdsadmin/request-crawl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ fi

for host in ${RELAY_HOSTS//,/ }; do
echo "Requesting crawl from ${host}"
if [[ $host != https:* && $host != http:* ]]; then
host="https://${host}"
fi
curl \
--fail \
--silent \
--show-error \
--request POST \
--header "Content-Type: application/json" \
--data "{\"hostname\": \"${PDS_HOSTNAME}\"}" \
"https://${host}/xrpc/com.atproto.sync.requestCrawl" >/dev/null
"${host}/xrpc/com.atproto.sync.requestCrawl" >/dev/null
done

echo "done"

0 comments on commit 3810cfb

Please sign in to comment.