git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471571
13f79535-47bb-0310-9956-
ffa450edef68
-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
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
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