mirror of https://github.com/apache/archiva.git
Fix problem with non ssh rsyncs
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@434461 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c769597ddc
commit
0188a4456c
|
@ -28,21 +28,23 @@ for f in `find conf -iname "*.sh"`
|
|||
TO=
|
||||
NO_SSH=
|
||||
SSH_OPTS=
|
||||
RSYNC_SSH=
|
||||
RSYNC=
|
||||
|
||||
source $f
|
||||
|
||||
if [ -z $NO_SSH ]
|
||||
then
|
||||
RSYNC_SSH="--rsh=ssh $SSH_OPTS"
|
||||
RSYNC="rsync --rsh=ssh $SSH_OPTS"
|
||||
else
|
||||
RSYNC="rsync"
|
||||
fi
|
||||
|
||||
echo "Syncing $FROM -> $TO"
|
||||
rsync --include=*/ --include=**/maven-metadata.xml* --exclude=* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM $BASEDIR/$TO
|
||||
rsync --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --ignore-existing $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM $BASEDIR/$TO
|
||||
"$RSYNC" --include=*/ --include=**/maven-metadata.xml* --exclude=* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt $RSYNC_OPTS -Lrtivz $FROM $BASEDIR/$TO
|
||||
"$RSYNC" --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --ignore-existing $RSYNC_OPTS -Lrtivz $FROM $BASEDIR/$TO
|
||||
|
||||
# check for changed files
|
||||
rsync -n --exclude=**/maven-metadata.xml* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --existing $RSYNC_OPTS -Lrtivzc "$RSYNC_SSH" $FROM $BASEDIR/$TO >> $CHANGED_LOG
|
||||
"$RSYNC" -n --exclude=**/maven-metadata.xml* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --existing $RSYNC_OPTS -Lrtivzc $FROM $BASEDIR/$TO >> $CHANGED_LOG
|
||||
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue