[LON-CAPA-cvs] cvs: doc /loncapafiles updatequery.piml

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 23 Mar 2005 18:43:25 -0000


albertel		Wed Mar 23 13:43:25 2005 EDT

  Modified files:              
    /doc/loncapafiles	updatequery.piml 
  Log:
  - always get the FQDN
  
  
Index: doc/loncapafiles/updatequery.piml
diff -u doc/loncapafiles/updatequery.piml:1.35 doc/loncapafiles/updatequery.piml:1.36
--- doc/loncapafiles/updatequery.piml:1.35	Sun Feb  6 02:57:57 2005
+++ doc/loncapafiles/updatequery.piml	Wed Mar 23 13:43:24 2005
@@ -1,6 +1,6 @@
 <!-- updatequery.piml -->
 
-<!-- $Id: updatequery.piml,v 1.35 2005/02/06 07:57:57 albertel Exp $ -->
+<!-- $Id: updatequery.piml,v 1.36 2005/03/23 18:43:24 albertel Exp $ -->
 
 <!--
 
@@ -196,7 +196,7 @@
 }
 
 # need to recommend a machine ID name (ipdomain.l.somenumber)
-my $hostname=`hostname`; chomp($hostname);
+my $hostname=`hostname -f`; chomp($hostname);
 my $ipdomain='';
 if ($hostname=~/([^\.]*)\.([^\.]*)$/) {
   $ipdomain=$1;
@@ -737,7 +737,7 @@
 <target dist='default'>loncom/hosts.tab</target>
 <perlscript mode='fg'>
 unless (-l "<TARGET />") {
-  my $hostname=`hostname`;chomp($hostname);
+  my $hostname=`hostname -f`;chomp($hostname);
   $date=`date -I`; chomp($date);
   $lonHostID=$perlvar{'lonHostID'};
   $lonHostID=~s/\W//g;