[Fai-commit] r4773 - trunk/bin
lange at alioth.debian.org
lange at alioth.debian.org
Tue Nov 20 13:43:15 UTC 2007
Author: lange
Date: 2007-11-20 13:43:15 +0000 (Tue, 20 Nov 2007)
New Revision: 4773
Modified:
trunk/bin/fai
Log:
add symlinks for last and last-$action in the very beginning
Modified: trunk/bin/fai
===================================================================
--- trunk/bin/fai 2007-11-20 13:42:17 UTC (rev 4772)
+++ trunk/bin/fai 2007-11-20 13:43:15 UTC (rev 4773)
@@ -260,11 +260,14 @@
if [ $do_init_tasks -eq 1 ]; then
# we are running an initial installation
export LOGDIR=/tmp/fai
+ mkdir -p $LOGDIR
else
export fai_rundate=$(date +'%Y%m%d_%H%M%S')
export LOGDIR=/var/log/fai/$HOSTNAME/$action-$fai_rundate
+ mkdir -p $LOGDIR
+ ln -snf $FAI_ACTION-$fai_rundate $LOGDIR/../last-$FAI_ACTION
+ ln -snf $FAI_ACTION-$fai_rundate $LOGDIR/../last
fi
-mkdir -p $LOGDIR
chown root $LOGDIR
chgrp adm $LOGDIR
chmod 0750 $LOGDIR
More information about the Fai-commit
mailing list