2 changed files with 5 additions and 3 deletions
@ -1,7 +1,8 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
|
|
||||
while true; do |
while true; do |
||||
if curl -sL -w "%{http_code}\\n" "http://localhost/" -o /dev/null > /dev/null; then |
if [ "$(curl -sL -w "%{http_code}\\n" "http://localhost/" -o /dev/null)" == "200" ]; then |
||||
|
echo "Successfully contacted BTCPayServer" |
||||
break |
break |
||||
fi |
fi |
||||
sleep 1 |
sleep 1 |
||||
|
Loading…
Reference in new issue