[Fai-commit] r4758 - trunk/lib
lange at alioth.debian.org
lange at alioth.debian.org
Fri Nov 16 16:45:38 UTC 2007
Author: lange
Date: 2007-11-16 16:45:37 +0000 (Fri, 16 Nov 2007)
New Revision: 4758
Modified:
trunk/lib/fai-savelog
Log:
do not save log to local directory, if this directory already exists
(should only happen during softupdate)
Modified: trunk/lib/fai-savelog
===================================================================
--- trunk/lib/fai-savelog 2007-11-16 16:42:57 UTC (rev 4757)
+++ trunk/lib/fai-savelog 2007-11-16 16:45:37 UTC (rev 4758)
@@ -37,6 +37,9 @@
local logbase=$FAI_ROOT/var/log/fai
local thislog=$logbase/$HOSTNAME/$FAI_ACTION-$fai_rundate
find $LOGDIR -xdev -size 0 -type f -exec rm {} \;
+
+ [ -d "$thislog" ] && return # nothing to do, if directory already exists
+
mkdir -p $thislog
cp -a $LOGDIR/* $thislog
chown root $thislog
More information about the Fai-commit
mailing list