[Groonga-commit] groonga/groonga at d208aa1 [master] packages: show nameserver information

Back to archive index

HAYASHI Kentaro null+****@clear*****
Wed May 22 12:01:19 JST 2013


HAYASHI Kentaro	2013-05-22 12:01:19 +0900 (Wed, 22 May 2013)

  New Revision: d208aa18cffd3e49ebc15591caa02dc2a078cc6a
  https://github.com/groonga/groonga/commit/d208aa18cffd3e49ebc15591caa02dc2a078cc6a

  Message:
    packages: show nameserver information

  Modified files:
    packages/check-utility.sh

  Modified: packages/check-utility.sh (+3 -2)
===================================================================
--- packages/check-utility.sh    2013-05-22 11:56:53 +0900 (ca3ce43)
+++ packages/check-utility.sh    2013-05-22 12:01:19 +0900 (bc894b5)
@@ -69,10 +69,11 @@ echo_packages_repository_address ()
     code=$2
     arch=$3
     address=`grep "packages.groonga.org" $root_dir/etc/hosts | grep -v "#"`
+    nameserver=`grep "nameserver" $root_dir/etc/resolv.conf | grep -v "#" | cut -d ' ' -f 2`
     if [ -z "$address" ]; then
-	echo "$code-$arch: default"
+	echo "$code-$arch: default nameserver:$nameserver"
     else
-	echo "$code-$arch: $address"
+	echo "$code-$arch: $address nameserver:$nameserver"
     fi
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index