Use rsync instead of scp for uploading hakiu repository packages.

This commit is contained in:
Matt Madia
2013-12-01 07:17:48 -05:00
parent 592be1fc7a
commit 9f1425e2f4
+1 -1
View File
@@ -23,7 +23,7 @@ version=${fileName#*-}
version=${version%%-*}
# upload the repo
scp -r "$repositoryDir/*" "$sshUserName@$sshServer:$sshDestPath/$arch/$version/"
rsync -rutlv -e ssh "$repositoryDir/" "$sshUserName@$sshServer:$sshDestPath/$arch/$version/"
ssh "$sshUserName@$sshServer" "chmod -R 755 $sshDestPath/$arch/$version"
sshSymlinkCommand="ln -sfT $version $sshDestPath/$arch/current"
ssh "$sshUserName@$sshServer" "$sshSymlinkCommand"