From 313f1b565a3a5ffabe87f61fd5ea69a962ac065d Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Wed, 1 Jun 2016 02:55:46 +0200 Subject: exit if switcher invoked by active party --- taler-build/switch_active.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'taler-build') diff --git a/taler-build/switch_active.sh b/taler-build/switch_active.sh index edea06e..1743dc1 100755 --- a/taler-build/switch_active.sh +++ b/taler-build/switch_active.sh @@ -8,6 +8,13 @@ # figure out which is the inactive ACTIVE=`readlink /home/test/sockets | awk -F/ '{print $3}'` + +# exit if active +if [[ `whoami` == $ACTIVE ]] +then +exit +fi + if [[ 'test-green' == $ACTIVE ]] then INACTIVE='test-blue' -- cgit v1.2.3