#!/bin/sh

echo -n "$(basename $0) "

if [ -f "/etc/alpine-release" ]; then
   echo -n "OK"
   exit
fi

if [ -f "/etc/debian_version" ]; then
   dpkg -s libc6 | grep Version | egrep -q '2.19-18+deb8u3|2.19-0ubuntu6.7' && echo -n "OK" || echo -n "FAIL"
   exit
fi

if [ -f "/usr/bin/rpm" ] || [ -f "/bin/rpm" ]; then
  rpm -qva | egrep -q 'glibc-2.12-1.166.el6_7.7|glibc-2.17-106.el7_2.4|glibc-2.21-11.fc22|glibc-2.22-9.fc23' && echo -n "OK" || echo -n "FAIL"
  exit
fi

echo -n "UNKNOWN"

#!/bin/sh

echo -n "$(basename $0) "

if [ -f "/etc/alpine-release" ]; then
   echo -n "OK"
   exit
fi

if [ -f "/etc/debian_version" ]; then
   dpkg -s libc6 | grep Version | egrep -q '2.19-18\+deb8u3|2.19-0ubuntu6.7' && echo -n "OK" || echo -n "FAIL"
   exit
fi

if [ -f "/usr/bin/rpm" ] || [ -f "/bin/rpm" ]; then
  rpm -qva | egrep -q 'glibc-2.12-1.166.el6_7.7|glibc-2.17-106.el7_2.4|glibc-2.21-11.fc22|glibc-2.22-9.fc23' && echo -n "OK" || echo -n "FAIL"
  exit
fi

echo -n "UNKNOWN"

Fix debian / ubuntu check
Fix debian / ubuntu check
