#!/bin/bash active=$(sudo -u test cat /home/test/active) nonactive="blue" echo "Active party: ${active}" if test $active = "test-blue"; then nonactive="green" fi if ! curl -H "X-Taler-Deployment-Color: $nonactive" -s https://exchange.test.taler.net/ &> /dev/null; then echo Exchange did not restart correctly exit 1 fi if ! curl -H "X-Taler-Deployment-Color: $nonactive" -s http://backend.test.taler.net/ &> /dev/null; then echo Merchant backend did not restart correctly exit 1 fi if ! curl -H "X-Taler-Deployment-Color: $nonactive" -s https://shop.test.taler.net/ &> /dev/null; then echo Blog did not restart correctly exit 1 fi if ! curl -H "X-Taler-Deployment-Color: $nonactive" -s https://donations.test.taler.net/ &> /dev/null; then echo Donations shop did not restart correctly exit 1 fi if ! curl -H "X-Taler-Deployment-Color: $nonactive" -s https://bank.test.taler.net/ &> /dev/null; then echo Bank did not restart correctly exit 1 fi if ! curl -H "X-Taler-Deployment-Color: $nonactive" -s https://test.taler.net/ &> /dev/null; then echo Landing page did not restart correctly exit 1 fi