[Fai-commit] r3887 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Thu Sep 7 14:26:42 UTC 2006


Author: lange
Date: 2006-09-07 14:26:42 +0000 (Thu, 07 Sep 2006)
New Revision: 3887

Modified:
   trunk/lib/subroutines
Log:
save FAI_CLASSES and disk_var.sh to /var/lib/fai
do not save variables.log to /var


Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines	2006-09-07 13:45:13 UTC (rev 3886)
+++ trunk/lib/subroutines	2006-09-07 14:26:42 UTC (rev 3887)
@@ -370,11 +370,11 @@
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 task_savelog() {
 
+    [ -d $FAI_ROOT/var/lib/fai ] || mkdir -p $FAI_ROOT/var/lib/fai
     [ -d $FAI_ROOT/var/log/fai ] || mkdir -p $FAI_ROOT/var/log/fai
-    [ -d $FAI_ROOT/var/log/fai ] && fai-savelog -l
-    [ -f $LOGDIR/FAI_CLASSES ] && cp -p $LOGDIR/FAI_CLASSES $FAI_ROOT/var/log/fai
-    [ -f $LOGDIR/variables.log ] && cp -p $LOGDIR/variables.log $FAI_ROOT/var/log/fai
-    [ "$diskvar" != "/var/log/fai/disk_var.sh" ] && cp -p $diskvar $FAI_ROOT/var/log/fai
+    fai-savelog -l
+    [ -f $LOGDIR/FAI_CLASSES ] && cp -p $LOGDIR/FAI_CLASSES $FAI_ROOT/var/lib/fai
+    [ "$diskvar" != "/var/log/fai/disk_var.sh" ] && cp -p $diskvar $FAI_ROOT/var/lib/fai
     fai-savelog -r
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -




More information about the Fai-commit mailing list