[Fai-commit] r3716 - trunk/bin
fai-commit at lists.alioth.debian.org
fai-commit at lists.alioth.debian.org
Tue Aug 1 08:58:50 UTC 2006
Author: lange
Date: 2006-08-01 08:58:49 +0000 (Tue, 01 Aug 2006)
New Revision: 3716
Modified:
trunk/bin/fai
Log:
always export HOSTNAME
Modified: trunk/bin/fai
===================================================================
--- trunk/bin/fai 2006-07-31 21:53:39 UTC (rev 3715)
+++ trunk/bin/fai 2006-08-01 08:58:49 UTC (rev 3716)
@@ -97,10 +97,11 @@
# if HOST was specified on the commandline, set hostname to it
[ $DO_INIT_TASKS -eq 1 ] && eval_cmdline
if [ -n "$HOST" ]; then
- export HOSTNAME=$HOST
+ HOSTNAME=$HOST
hostname $HOST
echo "Hostname set to $HOST" | tee -a $LOGDIR/fai.log
fi
+ export HOSTNAME
# since HOSTNAME may change define classes now, so we can call hooks before fai-class is called
[ -z "$classes" ] && classes="DEFAULT $oclass $HOSTNAME LAST"
More information about the Fai-commit
mailing list