1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

Rename plugin folder, check for json

This commit is contained in:
Sebastian L 2020-04-04 15:54:35 +02:00 committed by Lars Kruse
parent e54c4474fa
commit 0af7f4386f

View file

@ -50,7 +50,7 @@ case $1 in
autoconf) autoconf)
if [ -x /usr/bin/curl ]; then if [ -x /usr/bin/curl ]; then
if [ -x /usr/bin/jq ]; then if [ -x /usr/bin/jq ]; then
curl -s -f -m 2 -I "$COLIBRI_URL" > /dev/null && echo "yes" && exit 0 || echo "no (no valid env.url)" && exit 0 curl -s -f -m 2 -I "$COLIBRI_URL" | grep -iq "Content-Type: application/json" && echo "yes" && exit 0 || echo "no (invalid or empty response from colibri API ($COLIBRI_URL))" && exit 0
else else
echo "no (jq not found)" && exit 0 echo "no (jq not found)" && exit 0
fi fi