summaryrefslogtreecommitdiff
path: root/taler-build/switch_check_exchange.sh
blob: bce4a0948e58f3aad412d7c283218e6dd6dcaf15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

status_code1=$(curl -s -o /dev/null -w "%{http_code}" https://exchange.test.taler.net/)
status_code2=$(curl -s -o /dev/null -w "%{http_code}" https://exchange.test.taler.net/keys)

if test \
  $status_code1 = 502 -o \
  $status_code2 = 502; then
  echo Either \"/\" or \"/keys\" gave 502.
  exit 1
fi
exit 0