#!/bin/bash WHOAMI="$(whoami)" ACTIVE_COLOR="$(cat /home/test/active)" echo "whoami: $WHOAMI, active color: $ACTIVE_COLOR" if test $WHOAMI = $ACTIVE_COLOR; then echo "I'm the active color, no need to compile and switch!" exit 1 fi PAUSE_LOCKFILE=/tmp/buildbot_pause.lock if [ -f $PAUSE_LOCKFILE ]; then echo "The Buildbot is paused, remove ${PAUSE_LOCKFILE} to resume." # Treat this as error, so dependent schedulers won't fire up. exit 1 fi source "${HOME}/activate" taler-deployment-build