btcpayserver-docker/.circleci/test-connectivity.sh
2019-09-04 17:03:52 +09:00

10 lines
254 B
Bash
Executable File

#!/bin/bash
echo "Trying to connect to btcpayserver..."
while true; do
if [ "$(curl -sL -w "%{http_code}\\n" "http://localhost/" -o /dev/null)" == "200" ]; then
echo "Successfully contacted BTCPayServer"
break
fi
sleep 1
done