diff --git a/maven-meeper/src/bin/synchronize.properties b/maven-meeper/src/bin/synchronize.properties index af4022c5d..d409b2c60 100644 --- a/maven-meeper/src/bin/synchronize.properties +++ b/maven-meeper/src/bin/synchronize.properties @@ -8,6 +8,7 @@ export M2_SYNC=$SYNC_TOOLS/m2-sync 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_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 aff6ace16..59ab18e45 100755 --- a/maven-meeper/src/bin/synchronize/sync-central-to-ibiblio.sh +++ b/maven-meeper/src/bin/synchronize/sync-central-to-ibiblio.sh @@ -1,5 +1,9 @@ #!/bin/bash +syncProperties=$1 + +. $syncProperties + dest=/home/maven/repository-staging/to-ibiblio rsync -e ssh --delete --max-delete=10 -v -riplt $dest/maven2/ login.ibiblio.org:/public/html/maven2 @@ -7,21 +11,5 @@ rsync -e ssh --delete --max-delete=10 -v -riplt $dest/maven2/ login.ibiblio.org: date > $dest/maven2/last-sync.txt chmod a+r $dest/maven2/last-sync.txt - -# NO MORE m1 SYNC - -#date > $dest/maven/last-sync.txt -#chmod a+r $dest/maven/last-sync.txt -#rsync -e ssh --delete --max-delete=10 -v -riplt $dest/maven/ login.ibiblio.org:/public/html/maven - -# EXCEPT FOR PLUGINS -# TODO - FIX +# M1 Sync only for plugins ... rsync -e ssh --delete --max-delete=10 -v -riplt $dest/maven/ login.ibiblio.org:/public/html/maven -#( - #cd $dest/maven - #rsync -n -e ssh --delete --max-delete=10 -v -riplt --include='*/plugins/*' ./ login.ibiblio.org:/public/html/maven - #for i in */plugins - #do - #rsync -e ssh --delete --max-delete=10 -v -riplt $i login.ibiblio.org:/public/html/maven/$i - #done -#)