[Fai-commit] r3817 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Mon Sep 4 06:59:52 UTC 2006


Author: lange
Date: 2006-09-03 21:30:31 +0000 (Sun, 03 Sep 2006)
New Revision: 3817

Modified:
   trunk/lib/fai-savelog
Log:
use lowercase names for internal variables


Modified: trunk/lib/fai-savelog
===================================================================
--- trunk/lib/fai-savelog	2006-09-02 16:31:24 UTC (rev 3816)
+++ trunk/lib/fai-savelog	2006-09-03 21:30:31 UTC (rev 3817)
@@ -46,17 +46,17 @@
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 save_log_remote_shell() {
 
-    echo "Save log files via $FAI_REMOTESH to $LOGUSER@$LOGSERVER:$HOSTNAME/$FAI_ACTION-$FAI_RUNDATE"
+    echo "Save log files via $remotesh to $LOGUSER@$LOGSERVER:$HOSTNAME/$FAI_ACTION-$FAI_RUNDATE"
     local thislog=$HOSTNAME/$FAI_ACTION-$FAI_RUNDATE
     find $LOGDIR -size 0 -type f -exec rm {} \;
-    $FAI_REMOTESH -l $LOGUSER $LOGSERVER " \
+    $remotesh -l $LOGUSER $LOGSERVER " \
        mkdir -p $thislog ;\
        cd $HOSTNAME ;\
        rm -f last-$FAI_ACTION ;\
        ln -snf $FAI_ACTION-$FAI_RUNDATE last-$FAI_ACTION ;\
        ln -snf $FAI_ACTION-$FAI_RUNDATE last"
 
-    $FAI_REMOTECP -pr $LOGDIR/* $LOGUSER@$LOGSERVER:$thislog
+    $remotecp -pr $LOGDIR/* $LOGUSER@$LOGSERVER:$thislog
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 save_log_remote() {
@@ -77,12 +77,12 @@
         none)
             echo "Don't save logs with remote method, only local storage." ;;
         ssh)
-	    export FAI_REMOTESH=ssh
-	    export FAI_REMOTECP=scp
+	    export remotesh=ssh
+	    export remotecp=scp
 	    save_log_remote_shell ;;
         rsh)
-	    export FAI_REMOTESH=rsh
-	    export FAI_REMOTECP=rcp
+	    export remotesh=rsh
+	    export remotecp=rcp
 	    save_log_remote_shell ;;
     esac
 }
@@ -92,7 +92,7 @@
     cat <<EOF
 fai-savelog, save log files from fai to a local or remote location
 
-   Copyright (C) 2002-2005 by Thomas Lange
+   Copyright (C) 2002-2006 by Thomas Lange
 
 Usage: fai-savelog [OPTION]
 




More information about the Fai-commit mailing list