]> source.dussan.org Git - archiva.git/commitdiff
o don't reference the log file in the crontab but place it in the script so that...
authorJason van Zyl <jvanzyl@apache.org>
Sun, 5 Nov 2006 23:35:03 +0000 (23:35 +0000)
committerJason van Zyl <jvanzyl@apache.org>
Sun, 5 Nov 2006 23:35:03 +0000 (23:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471571 13f79535-47bb-0310-9956-ffa450edef68

maven-meeper/src/bin/crontab.txt
maven-meeper/src/bin/synchronize.sh

index ed9890973e2c6aacdad325ba643e3e073d6d8cf3..f07de1c4acb14dce5475f2d97419c4f54bd1a0ea 100644 (file)
@@ -1 +1 @@
-0  */4 * * * cd ~/components/maven-meeper/src/bin; ./synchronize.sh 2>&1 | tee $HOME/repository-staging/to-ibiblio/reports/sync/last-sync-results.txt
+0  */4 * * * cd ~/components/maven-meeper/src/bin; ./synchronize.sh
index bc2011c3bc87126fbd13500087d71ebe1f827a2f..69776b5644b3a5d948f094b3d0b0874cda87bab5 100755 (executable)
@@ -13,8 +13,10 @@ dir=`pwd`
 syncProperties=$dir/synchronize.properties
 
 MODE=$1
-
 PID=$$
+
+(
+
 RUNNING=`ps -ef | grep synchronize.sh | grep -v 'sh -c' | grep -v grep | grep -v $PID`
 if [ ! -z "$RUNNING" ]; then
   echo Sync already running... exiting
@@ -116,3 +118,5 @@ echo "Copying rewrite rules into place"
 cp $M1_M2_REWRITE_RULES $MAVEN1_REPO/.htaccess
     
 scp $M1_M2_REWRITE_RULES maven@login.ibiblio.org:/public/html/maven/.htaccess   
+
+) > $HOME/repository-staging/to-ibiblio/reports/sync/last-sync-results.txt 2>&1