summaryrefslogtreecommitdiff
path: root/evergreen/powercycle_ssh_failure_exit.sh
blob: fa0d824239e9d46f82db96c920740a9956b8a29a (plain)
1
2
3
4
5
6
7
8
9
10
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
. "$DIR/prelude.sh"

cd src

# Trigger a system failure if powercycle failed due to ssh access.
if [ -n "${ec2_ssh_failure}" ]; then
  echo "ec2_ssh_failure detected - $(cat powercycle_exit.yml)"
  exit ${exit_code}
fi