From: Marcel Poul Date: Thu, 19 Apr 2012 15:26:31 +0000 (+0000) Subject: use hostname -f before hostname -A (beware of hostname -A has space character after... X-Git-Tag: glite-px-proxyrenewal_R_1_3_25_5~9 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=bbeef9b96aae7ddb245cbeb23c15dc99a8516311;p=jra1mw.git use hostname -f before hostname -A (beware of hostname -A has space character after the FQDN) --- diff --git a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-cs-openssl.sh b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-cs-openssl.sh index 1361430..3488e6b 100755 --- a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-cs-openssl.sh +++ b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-cs-openssl.sh @@ -59,7 +59,7 @@ source ${COMMON} #flag=0 srvbin="" clibin="" -server_host=`hostname -A 2> /dev/null || hostname -f 2> /dev/null` +server_host=`hostname -f 2> /dev/null || hostname -A 2> /dev/null` while test -n "$1" do case "$1" in diff --git a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh index 92ebde7..1b9f6be 100755 --- a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh +++ b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh @@ -58,7 +58,7 @@ source ${COMMON} #flag=0 srvbin="" clibin="" -server_host=`hostname -A 2> /dev/null || hostname -f 2> /dev/null` +server_host=`hostname -f 2> /dev/null || hostname -A 2> /dev/null` while test -n "$1" do case "$1" in diff --git a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sha2.sh b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sha2.sh index 0bce473..ed97570 100755 --- a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sha2.sh +++ b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sha2.sh @@ -170,7 +170,7 @@ else exit 2 fi -server_host=`hostname -A 2> /dev/null || hostname -f 2> /dev/null` +server_host=`hostname -f 2> /dev/null || hostname -A 2> /dev/null` ${EMI_CANL_CLIENT} -s "${server_host}" -p "${nu_port}" -k "${sha2_key}"\ -c "${sha2_cert}" if [ $? -ne 0 ]; then