diff options
Diffstat (limited to 'taler-build')
-rwxr-xr-x | taler-build/switch_active.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/taler-build/switch_active.sh b/taler-build/switch_active.sh index bc64ed6..388d488 100755 --- a/taler-build/switch_active.sh +++ b/taler-build/switch_active.sh @@ -6,11 +6,13 @@ # The script is not portable to system using different usernames and directories, # respect to taler.net, for blue-green deployments +set -eu + # figure out which is the inactive -ACTIVE=`readlink /home/test/sockets | awk -F/ '{print $3}'` +ACTIVE=$(readlink /home/test/sockets | awk -F/ '{print $3}') # exit if active -if [[ `whoami` == $ACTIVE ]] +if [[ $(whoami) == $ACTIVE ]] then exit fi |