[Fai-commit] r4762 - trunk/lib

lange at alioth.debian.org lange at alioth.debian.org
Sat Nov 17 14:49:23 UTC 2007


Author: lange
Date: 2007-11-17 14:49:22 +0000 (Sat, 17 Nov 2007)
New Revision: 4762

Modified:
   trunk/lib/fai-savelog
Log:
create symlinks


Modified: trunk/lib/fai-savelog
===================================================================
--- trunk/lib/fai-savelog	2007-11-17 13:39:40 UTC (rev 4761)
+++ trunk/lib/fai-savelog	2007-11-17 14:49:22 UTC (rev 4762)
@@ -36,7 +36,10 @@
 
     local logbase=$FAI_ROOT/var/log/fai
     local thislog=$logbase/$HOSTNAME/$FAI_ACTION-$fai_rundate
+
     find $LOGDIR -xdev -size 0 -type f -exec rm {} \;
+    ln -snf $FAI_ACTION-$fai_rundate $LOGDIR/../last-$FAI_ACTION
+    ln -snf $FAI_ACTION-$fai_rundate $LOGDIR/../last
 
     [ -d "$thislog" ] && return # nothing to do, if directory already exists
 




More information about the Fai-commit mailing list