summaryrefslogtreecommitdiffstats
path: root/maven-meeper
diff options
context:
space:
mode:
authorJason van Zyl <jvanzyl@apache.org>2006-11-29 17:30:03 +0000
committerJason van Zyl <jvanzyl@apache.org>2006-11-29 17:30:03 +0000
commit0deacc911002bef9a96adf99942ce94568af28a1 (patch)
tree5d6cbbff384aae5d2c65a5ef4eb40d43543917d9 /maven-meeper
parent359f0707dec24d89e059a5951d66d0a9a38f9e15 (diff)
downloadarchiva-0deacc911002bef9a96adf99942ce94568af28a1.tar.gz
archiva-0deacc911002bef9a96adf99942ce94568af28a1.zip
o adding separate properites for m1/m2 sync dir at ibiblio
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@480642 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'maven-meeper')
-rw-r--r--maven-meeper/src/bin/synchronize.properties3
-rwxr-xr-xmaven-meeper/src/bin/synchronize/sync-central-to-ibiblio.sh4
2 files changed, 4 insertions, 3 deletions
diff --git a/maven-meeper/src/bin/synchronize.properties b/maven-meeper/src/bin/synchronize.properties
index b502f6e6d..8c1489e6d 100644
--- a/maven-meeper/src/bin/synchronize.properties
+++ b/maven-meeper/src/bin/synchronize.properties
@@ -9,7 +9,8 @@ export REPOCLEAN=$TOOLS_BASE/m1-m2-conversion
export M1_M2_REWRITE_RULES=$SYNC_TOOLS/m1-m2-mod-rewrite-rules.txt
export SYNC_REPORTS=$HOME/repository-staging/to-ibiblio/reports/sync
export IBIBLIO_SYNC_HOST=mirrors.ibiblio.org
-export IBIBLIO_SYNC_DIR=/export/mirrors/maven and /export/mirrors/maven2
+export M1_IBIBLIO_SYNC_DIR=/export/mirrors/maven and /export/mirrors/maven
+export M2_IBIBLIO_SYNC_DIR=/export/mirrors/maven and /export/mirrors/maven2
export JAVA_HOME=/opt/java/sdk/current
export JAVA_CMD=$JAVA_HOME/bin/java
export JAVA_OPTS="-ms32m -mx256m"
diff --git a/maven-meeper/src/bin/synchronize/sync-central-to-ibiblio.sh b/maven-meeper/src/bin/synchronize/sync-central-to-ibiblio.sh
index 59ab18e45..3e05f84f7 100755
--- a/maven-meeper/src/bin/synchronize/sync-central-to-ibiblio.sh
+++ b/maven-meeper/src/bin/synchronize/sync-central-to-ibiblio.sh
@@ -6,10 +6,10 @@ syncProperties=$1
dest=/home/maven/repository-staging/to-ibiblio
-rsync -e ssh --delete --max-delete=10 -v -riplt $dest/maven2/ login.ibiblio.org:/public/html/maven2
+rsync -e ssh --delete --max-delete=10 -v -riplt $dest/maven2/ $IBIBLIO_SYNC_HOST:$M2_IBIBLIO_SYNC_DIR
date > $dest/maven2/last-sync.txt
chmod a+r $dest/maven2/last-sync.txt
# M1 Sync only for plugins ...
-rsync -e ssh --delete --max-delete=10 -v -riplt $dest/maven/ login.ibiblio.org:/public/html/maven
+rsync -e ssh --delete --max-delete=10 -v -riplt $dest/maven/ $IBIBLIO_SYNC_HOST:$M1_IBIBLIO_SYNC_DIR