[Fai-commit] r4301 - trunk/lib

lange at alioth.debian.org lange at alioth.debian.org
Sun Jun 10 19:00:40 UTC 2007


Author: lange
Date: 2007-06-10 19:00:40 +0000 (Sun, 10 Jun 2007)
New Revision: 4301

Modified:
   trunk/lib/fai-savelog
Log:
use LOGREMOTEDIR when saving to remote (closes: #290371)


Modified: trunk/lib/fai-savelog
===================================================================
--- trunk/lib/fai-savelog	2007-06-10 16:45:41 UTC (rev 4300)
+++ trunk/lib/fai-savelog	2007-06-10 19:00:40 UTC (rev 4301)
@@ -6,7 +6,7 @@
 # fai-save-log -- save log files from fai to a local or remote location
 #
 # This script is part of FAI (Fully Automatic Installation)
-# (c) 2002-2006 by Thomas Lange, lange at informatik.uni-koeln.de
+# (c) 2002-2007 by Thomas Lange, lange at informatik.uni-koeln.de
 # Universitaet zu Koeln
 #
 #*********************************************************************
@@ -49,8 +49,14 @@
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 save_log_remote_shell() {
 
-    echo "Save log files via $remotesh to $LOGUSER@$LOGSERVER:$HOSTNAME/$FAI_ACTION-$fai_rundate"
-    local thislog=$HOSTNAME/$FAI_ACTION-$fai_rundate
+    local thislog
+    if [ -n "$LOGREMOTEDIR" ];then
+	thislog=$LOGREMOTEDIR/$HOSTNAME/$FAI_ACTION-$fai_rundate
+    else
+	thislog=$HOSTNAME/$FAI_ACTION-$fai_rundate
+    fi
+
+    echo "Save log files via $remotesh to $LOGUSER@$LOGSERVER:$thislog"
     find $LOGDIR -size 0 -type f -exec rm {} \;
     $remotesh -l $LOGUSER $LOGSERVER " \
        mkdir -p $thislog ;\




More information about the Fai-commit mailing list