mirror of https://github.com/apache/archiva.git
o create a property for the new ibiblio sync directory
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@480632 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
267ee12e7d
commit
d42a4e7d4c
|
@ -8,6 +8,7 @@ export M2_SYNC=$SYNC_TOOLS/m2-sync
|
||||||
export REPOCLEAN=$TOOLS_BASE/m1-m2-conversion
|
export REPOCLEAN=$TOOLS_BASE/m1-m2-conversion
|
||||||
export M1_M2_REWRITE_RULES=$SYNC_TOOLS/m1-m2-mod-rewrite-rules.txt
|
export M1_M2_REWRITE_RULES=$SYNC_TOOLS/m1-m2-mod-rewrite-rules.txt
|
||||||
export SYNC_REPORTS=$HOME/repository-staging/to-ibiblio/reports/sync
|
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_HOME=/opt/java/sdk/current
|
||||||
export JAVA_CMD=$JAVA_HOME/bin/java
|
export JAVA_CMD=$JAVA_HOME/bin/java
|
||||||
export JAVA_OPTS="-ms32m -mx256m"
|
export JAVA_OPTS="-ms32m -mx256m"
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
syncProperties=$1
|
||||||
|
|
||||||
|
. $syncProperties
|
||||||
|
|
||||||
dest=/home/maven/repository-staging/to-ibiblio
|
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/ 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
|
date > $dest/maven2/last-sync.txt
|
||||||
chmod a+r $dest/maven2/last-sync.txt
|
chmod a+r $dest/maven2/last-sync.txt
|
||||||
|
|
||||||
|
# M1 Sync only for plugins ...
|
||||||
# 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
|
|
||||||
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/ 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
|
|
||||||
#)
|
|
||||||
|
|
Loading…
Reference in New Issue