[Fai-commit] r4214 - trunk/bin
Thomas Lange
lange at alioth.debian.org
Thu Jan 11 16:16:38 CET 2007
Author: lange
Date: 2007-01-11 16:16:38 +0100 (Thu, 11 Jan 2007)
New Revision: 4214
Modified:
trunk/bin/fai-class
Log:
set hostname from -u as intended (closes: #406125)
Modified: trunk/bin/fai-class
===================================================================
--- trunk/bin/fai-class 2007-01-11 15:14:21 UTC (rev 4213)
+++ trunk/bin/fai-class 2007-01-11 15:16:38 UTC (rev 4214)
@@ -6,7 +6,7 @@
# fai-class - determine all classes a host belongs to
#
# This script is part of FAI (Fully Automatic Installation)
-# (c) 2002-2006 by Thomas Lange, lange at informatik.uni-koeln.de
+# (c) 2002-2007 by Thomas Lange, lange at informatik.uni-koeln.de
# Universitaet zu Koeln
#
#*********************************************************************
@@ -131,7 +131,11 @@
verbosemsg "Setting LOGDIR to default value /tmp/fai"
LOGDIR=/tmp/fai; export LOGDIR
fi
- HOSTNAME=$(uname -n | cut -d. -f1); export HOSTNAME
+ if [ -n $HOST ]; then
+ export HOSTNAME=$HOST
+ else
+ HOSTNAME=$(uname -n | cut -d. -f1); export HOSTNAME
+ fi
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# main program
More information about the Fai-commit
mailing list