diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-08 14:27:33 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-08 14:27:33 +0100 |
commit | e7f9de0a48c9d62146babe7f01bf397735b2d413 (patch) | |
tree | 18cc4d00d3b71477f65b83a49cd2bd6a9ac4c450 /taler-build/switch_check_merchant.sh | |
parent | dc9fab323fc836733b7cc998ee6141d7ecd19cc5 (diff) | |
download | deployment-e7f9de0a48c9d62146babe7f01bf397735b2d413.tar.gz deployment-e7f9de0a48c9d62146babe7f01bf397735b2d413.tar.bz2 deployment-e7f9de0a48c9d62146babe7f01bf397735b2d413.zip |
Adding stepts' scripts.
Diffstat (limited to 'taler-build/switch_check_merchant.sh')
-rwxr-xr-x | taler-build/switch_check_merchant.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/taler-build/switch_check_merchant.sh b/taler-build/switch_check_merchant.sh new file mode 100755 index 0000000..0561b03 --- /dev/null +++ b/taler-build/switch_check_merchant.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +status_code1=$(curl -s -o /dev/null -w "%{http_code}" https://shop.test.taler.net/backend) +status_code2=$(curl -s -o /dev/null -w "%{http_code}" https://shop.test.taler.net/backend/proposal) +status_code3=$(curl -s -o /dev/null -w "%{http_code}" https://donations.test.taler.net/backend) +status_code4=$(curl -s -o /dev/null -w "%{http_code}" https://donations.test.taler.net/backend/proposal) + +if test \ + $status_code1 = 502 -o \ + $status_code2 = 502 -o \ + $status_code3 = 502 -o \ + $status_code4 = 502; then + exit 1 +fi + +exit 0 |