summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-09-17 07:17:48 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-09-17 07:17:48 -0400
commitbb4e5d8fd224a04e7d9c7437e5e63f39b9c4f37d (patch)
tree2a9d588c6bb6570bd9c136b03b081bc4ad865a3d
parentcab74667990baf116996737a1a98a0c188826439 (diff)
downloadbuild_tools-bb4e5d8fd224a04e7d9c7437e5e63f39b9c4f37d.zip
build_tools-bb4e5d8fd224a04e7d9c7437e5e63f39b9c4f37d.tar.gz
build_tools-bb4e5d8fd224a04e7d9c7437e5e63f39b9c4f37d.tar.xz
Switch to rsync for creating the public repo
-rwxr-xr-xsssd-nightly.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/sssd-nightly.sh b/sssd-nightly.sh
index 93eb435..5a9acbb 100755
--- a/sssd-nightly.sh
+++ b/sssd-nightly.sh
@@ -171,14 +171,10 @@ echo "===== Removing Source Tree =====" >> $LOGFILE
cd /local/sgallagh && rm -Rf sssd-$datestamp
echo "===== PUBLISHING FEDORA 11 YUM REPOSITORY =====" >> $LOGFILE
-ssh -i /local/sgallagh/.ssh/repo.priv sgallagh@fedorapeople.org \
- "find ~/public_html/repo/f11 -type f -daystart -ctime +6 -name \"sssd-*\" -exec rm -f {} \;"
-scp -i /local/sgallagh/.ssh/repo.priv -pqr /local/sgallagh/repos/f11 sgallagh@fedorapeople.org:public_html/repo/
+rsync -e ssh -i /local/sgallagh/.ssh/repo.priv -a --delete-after --progress /repos/f11 sgallagh@fedorapeople.org:public_html/repo/ >> $LOGFILE || finish 80
echo "===== PUBLISHING RHEL 5 YUM REPOSITORY =====" >> $LOGFILE
-ssh -i /local/sgallagh/.ssh/repo.priv sgallagh@fedorapeople.org \
- "find ~/public_html/repo/rhel5 -type f -daystart -ctime +6 -name \"sssd-*\" -exec rm -f {} \;"
-scp -i /local/sgallagh/.ssh/repo.priv -pqr /local/sgallagh/repos/rhel5 sgallagh@fedorapeople.org:public_html/repo/
+rsync -e ssh -i /local/sgallagh/.ssh/repo.priv -a --delete-after --progress /repos/rhel5 sgallagh@fedorapeople.org:public_html/repo/ >> $LOGFILE || finish 81
echo "===== BUILD CONCLUDED AT `date` =====" >> $LOGFILE