Abort init script when no context is found

pull/59/head
German Gutierrez 8 years ago
parent d1168e5cc4
commit b188df3ab6

@ -65,6 +65,10 @@ function get_new_context {
openssl base64 -d > ${CONTEXT_NEW}
elif curl -o ${CONTEXT_NEW} http://169.254.169.254/latest/user-data ; then
echo -n ""
else
echo "No context found!!"
echo "Exiting...."
exit 1
fi
}

Loading…
Cancel
Save