bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_jwhois/0-install_jwhois.sh

Athmane Madjoudj d6479e
#!/bin/bash
Athmane Madjoudj d6479e
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj d6479e
Athmane Madjoudj d6479e
# nc (netcat) is required for the test
da1d6e
Pablo Greco 41fef5
if [ "$centos_ver" -ge 8 ] ;then
Pablo Greco 41fef5
  t_Log "No whois package for CentOS $centos_ver -> SKIP"
Pablo Greco 41fef5
  t_CheckExitStatus 0
Pablo Greco 41fef5
  exit 0
Pablo Greco 41fef5
elif [ "$centos_ver" = "7" ] ;then
da1d6e
  whois_pkg="whois"
da1d6e
else
da1d6e
  whois_pkg="jwhois"
da1d6e
fi
da1d6e
da1d6e
t_InstallPackage $whois_pkg nc
Athmane Madjoudj d6479e