DO288-apps/nexus-image/probes/readiness.sh
2019-05-23 13:13:16 -04:00

13 lines
248 B
Bash

#!/bin/sh
curl -si localhost:8081/nexus/service/local/repositories | grep Central
RESPONSE=$?
if [ "$RESPONSE" = "0" ] ; then
echo "******** readiness is Alive ********"
exit 0;
else
echo "******** readiness is Dead ********"
exit 1;
fi