From ac03a46cd8605f6e5b89f939bd79b35e00a63a75 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Thu, 25 Jun 2009 22:55:59 -0500 Subject: linhes-config:install_proxy, catch corner case for hostname check. if the nameserver for this host can't be found assume it's ok. --- abs/core-testing/LinHES-config/PKGBUILD | 2 +- abs/core-testing/LinHES-config/install_proxy.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/abs/core-testing/LinHES-config/PKGBUILD b/abs/core-testing/LinHES-config/PKGBUILD index cc67e21..27e5526 100755 --- a/abs/core-testing/LinHES-config/PKGBUILD +++ b/abs/core-testing/LinHES-config/PKGBUILD @@ -1,6 +1,6 @@ pkgname=LinHES-config pkgver=2.0 -pkgrel=26 +pkgrel=27 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev ) pkgdesc="Install and configure your system" depends=(bc libstatgrab mysql-python expect curl dnsutils parted sg3_utils nmbscan system-templates rsync python-parted ddcxinfo) diff --git a/abs/core-testing/LinHES-config/install_proxy.sh b/abs/core-testing/LinHES-config/install_proxy.sh index bedacbf..dd4be79 100755 --- a/abs/core-testing/LinHES-config/install_proxy.sh +++ b/abs/core-testing/LinHES-config/install_proxy.sh @@ -132,6 +132,12 @@ case $1 in status=1 fi + if [ $hoip = "out;" ] + then + echo "DNS servers not found" + status=1 + fi + unkownhost=`host unkown.linhes.org |head -n1 ` unkownhostip=`echo $unkownhost |awk '{print $4}'` -- cgit v0.12