[Fai-commit] r3825 - trunk/bin

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Mon Sep 4 08:05:04 UTC 2006


Author: lange
Date: 2006-09-04 08:05:04 +0000 (Mon, 04 Sep 2006)
New Revision: 3825

Modified:
   trunk/bin/fai
Log:
cleanup LOGDIR before using it again (closes: #369534)


Modified: trunk/bin/fai
===================================================================
--- trunk/bin/fai	2006-09-03 23:02:01 UTC (rev 3824)
+++ trunk/bin/fai	2006-09-04 08:05:04 UTC (rev 3825)
@@ -236,12 +236,13 @@
     export start_seconds=$(cut -d . -f 1 /proc/uptime)
 
     export LOGDIR=/var/log/fai/current
+    [ -d $LOGDIR ] && rm -rf $LOGDIR
     mkdir -p $LOGDIR
 
     # for compability, can be removed later
     if [ $DO_INIT_TASKS -eq 1 ]; then
 	mkdir /tmp/fai
-	mount --bind /var/log/fai/current /tmp/fai 
+	mount --bind $LOGDIR /tmp/fai 
     fi
 
 fai_init




More information about the Fai-commit mailing list