|
From: <ha...@us...> - 2008-05-19 22:22:14
|
Revision: 2023
http://cogkit.svn.sourceforge.net/cogkit/?rev=2023&view=rev
Author: hategan
Date: 2008-05-19 15:21:51 -0700 (Mon, 19 May 2008)
Log Message:
-----------
fixed hostname issue. the previous thing was written with the wrong assumption
Modified Paths:
--------------
trunk/current/src/cog/etc/unix/example-launcher-template
trunk/current/src/cog/etc/unix/launcher-template
Modified: trunk/current/src/cog/etc/unix/example-launcher-template
===================================================================
--- trunk/current/src/cog/etc/unix/example-launcher-template 2008-05-19 20:00:27 UTC (rev 2022)
+++ trunk/current/src/cog/etc/unix/example-launcher-template 2008-05-19 22:21:51 UTC (rev 2023)
@@ -59,6 +59,10 @@
USERID=`id | awk '{printf("%s\n", substr($1, 5, index($1, "(")-5 ) ) }'`
+if [ "X$GLOBUS_HOSTNAME" == "X" ] && [ "X$HOSTNAME" != "X" ]; then
+ GLOBUS_HOSTNAME=$HOSTNAME
+fi
+
updateOptions "$USERID" "UID"
updateOptions "$GLOBUS_INSTALL_PATH" "GLOBUS_INSTALL_PATH"
updateOptions "$GLOBUS_DEPLOY_PATH" "GLOBUS_DEPLOY_PATH"
@@ -66,7 +70,6 @@
updateOptions "$GLOBUS_TCP_SOURCE_PORT_RANGE" "GLOBUS_TCP_SOURCE_PORT_RANGE"
updateOptions "$GLOBUS_UDP_SOURCE_PORT_RANGE" "GLOBUS_UDP_SOURCE_PORT_RANGE"
updateOptions "$GLOBUS_HOSTNAME" "GLOBUS_HOSTNAME"
-updateOptions "$HOSTNAME" "hostname"
updateOptions "$X509_USER_CERT" "X509_USER_CERT"
updateOptions "$X509_USER_KEY" "X509_USER_KEY"
updateOptions "$X509_CERT_DIR" "X509_CERT_DIR"
Modified: trunk/current/src/cog/etc/unix/launcher-template
===================================================================
--- trunk/current/src/cog/etc/unix/launcher-template 2008-05-19 20:00:27 UTC (rev 2022)
+++ trunk/current/src/cog/etc/unix/launcher-template 2008-05-19 22:21:51 UTC (rev 2023)
@@ -61,6 +61,10 @@
USERID=`id | awk '{printf("%s\n", substr($1, 5, index($1, "(")-5 ) ) }'`
+if [ "X$GLOBUS_HOSTNAME" == "X" ] && [ "X$HOSTNAME" != "X" ]; then
+ GLOBUS_HOSTNAME=$HOSTNAME
+fi
+
updateOptions "$USERID" "UID"
updateOptions "$GLOBUS_INSTALL_PATH" "GLOBUS_INSTALL_PATH"
updateOptions "$GLOBUS_DEPLOY_PATH" "GLOBUS_DEPLOY_PATH"
@@ -68,7 +72,6 @@
updateOptions "$GLOBUS_TCP_SOURCE_PORT_RANGE" "GLOBUS_TCP_SOURCE_PORT_RANGE"
updateOptions "$GLOBUS_UDP_SOURCE_PORT_RANGE" "GLOBUS_UDP_SOURCE_PORT_RANGE"
updateOptions "$GLOBUS_HOSTNAME" "GLOBUS_HOSTNAME"
-updateOptions "$HOSTNAME" "hostname"
updateOptions "$X509_USER_CERT" "X509_USER_CERT"
updateOptions "$X509_USER_KEY" "X509_USER_KEY"
updateOptions "$X509_CERT_DIR" "X509_CERT_DIR"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|