diff options
author | Jason van Zyl <jvanzyl@apache.org> | 2006-11-05 23:48:29 +0000 |
---|---|---|
committer | Jason van Zyl <jvanzyl@apache.org> | 2006-11-05 23:48:29 +0000 |
commit | ceedb11331c7bd311a2014e54292c1cb4851d84b (patch) | |
tree | f4b28523ac68035698ef1c254ee22abfa282a038 /maven-meeper/src | |
parent | 92077580d8271c8e2e090874289a8298ccb307f5 (diff) | |
download | archiva-ceedb11331c7bd311a2014e54292c1cb4851d84b.tar.gz archiva-ceedb11331c7bd311a2014e54292c1cb4851d84b.zip |
o make the log work from cron or manual run
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471573 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'maven-meeper/src')
-rwxr-xr-x | maven-meeper/src/bin/synchronize.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/maven-meeper/src/bin/synchronize.sh b/maven-meeper/src/bin/synchronize.sh index 69776b564..463cc9000 100755 --- a/maven-meeper/src/bin/synchronize.sh +++ b/maven-meeper/src/bin/synchronize.sh @@ -9,21 +9,21 @@ # 6. Copy the mod_rewrite rules to the Maven 1.x repository @ Ibiblio # ------------------------------------------------------------------------ -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` +echo $RUNNING if [ ! -z "$RUNNING" ]; then echo Sync already running... exiting echo $RUNNING exit 1 fi +( + +dir=`pwd` +syncProperties=$dir/synchronize.properties +MODE=$1 + . $syncProperties echo "Using the following settings:" @@ -119,4 +119,4 @@ 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 +) 2>&1 | tee $HOME/repository-staging/to-ibiblio/reports/sync/last-sync-results.txt |