[Fai-commit] r4755 - trunk/lib

lange at alioth.debian.org lange at alioth.debian.org
Fri Nov 16 16:27:03 UTC 2007


Author: lange
Date: 2007-11-16 16:27:03 +0000 (Fri, 16 Nov 2007)
New Revision: 4755

Modified:
   trunk/lib/subroutines
Log:
set $fai_rundate only if not yet defined


Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines	2007-11-16 10:48:44 UTC (rev 4754)
+++ trunk/lib/subroutines	2007-11-16 16:27:03 UTC (rev 4755)
@@ -255,7 +255,7 @@
     unset flag_createvt flag_sshd
 
     # when did FAI start, using localtime
-    fai_rundate=$(date +'%Y%m%d_%H%M%S')
+    [ -z "$fai_rundate" ] && fai_rundate=$(date +'%Y%m%d_%H%M%S')
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 ### BEGIN SUBROUTINE INFO




More information about the Fai-commit mailing list