[Fai-commit] r4728 - trunk/bin

lange at alioth.debian.org lange at alioth.debian.org
Tue Nov 13 14:43:35 UTC 2007


Author: lange
Date: 2007-11-13 14:43:35 +0000 (Tue, 13 Nov 2007)
New Revision: 4728

Modified:
   trunk/bin/fai-setup
   trunk/bin/make-fai-nfsroot
Log:
also write stderr to log file


Modified: trunk/bin/fai-setup
===================================================================
--- trunk/bin/fai-setup	2007-11-12 17:54:28 UTC (rev 4727)
+++ trunk/bin/fai-setup	2007-11-13 14:43:35 UTC (rev 4728)
@@ -144,6 +144,8 @@
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
+{ start huge block for capturing output
+
 if [ -n "$LOGUSER" ]; then
     add_fai_account
     setup_fai_account
@@ -194,3 +196,5 @@
     echo ""
 fi
 echo "FAI setup finished."
+} 2>&1 | tee /var/log/fai/fai-setup.log
+echo "Log file written to /var/log/fai/fai-setup.log"

Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot	2007-11-12 17:54:28 UTC (rev 4727)
+++ trunk/bin/make-fai-nfsroot	2007-11-13 14:43:35 UTC (rev 4728)
@@ -528,5 +528,5 @@
 trap "true" EXIT
 echo "make-fai-nfsroot finished $merror."
 exit 0
-} | tee /var/log/fai/make-fai-nfsroot.log
+} 2>&1 | tee /var/log/fai/make-fai-nfsroot.log
 echo "Log file written to /var/log/fai/make-fai-nfsroot.log"




More information about the Fai-commit mailing list