0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-24 16:46:00 +01:00
mongodb/evergreen/powercycle_ssh_failure_exit.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
288 B
Bash
Raw Normal View History

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