r284 - html/trunk/external-scripts

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Tue Jun 14 12:52:24 PDT 2005


Author: jhuntwork
Date: 2005-06-14 13:52:24 -0600 (Tue, 14 Jun 2005)
New Revision: 284

Modified:
   html/trunk/external-scripts/lfs-ftp-rsync.sh
Log:
Generalized the ftp rsync script a bit more

Modified: html/trunk/external-scripts/lfs-ftp-rsync.sh
===================================================================
--- html/trunk/external-scripts/lfs-ftp-rsync.sh	2005-06-14 19:43:46 UTC (rev 283)
+++ html/trunk/external-scripts/lfs-ftp-rsync.sh	2005-06-14 19:52:24 UTC (rev 284)
@@ -6,22 +6,20 @@
 NAME="LFS ftp archive"
 SITE=rsync.osuosl.org
 MODULE=lfs
-LOCAL=/local/path/
-LOG=/path/to/logfile
+LOCAL=/local/path/   			# Edit this line
+LOG=/path/to/logfile 			# Edit this line
 USER=root  
-MAILER=/usr/bin/your_favorite_mailer
+MAILER=/usr/bin/your_favorite_mailer 	# Edit this line
 
 OUTPUT=`rsync -clprtz --delete ${SITE}::${MODULE} ${LOCAL} 2>&1`
 
 if [ $? = 0 ]
 then
-    echo "Subject: rsync of ${NAME} on igwe.vub.ac.be OK" |${MAILER}
+    echo "Subject: rsync of ${NAME} OK" |${MAILER}
 ${USER};
     echo "Rsync succeeded of ${NAME} on" `date` >> ${LOG}
 else
-    (echo "Subject: rsync of ${NAME} on igwe.vub.ac.be FAILED"; echo -e "${OUTPUT}") |${MAILER} ${USER};
+    (echo "Subject: rsync of ${NAME} FAILED"; echo -e "${OUTPUT}") |${MAILER} ${USER};
     echo "Rsync failed of ${NAME} on" `date` >> ${LOG};
     echo -e "${OUTPUT}" >> ${LOG}
 fi
-
-




More information about the website mailing list