summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-09-16 09:20:30 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-09-16 09:20:30 -0400
commit2d439aba48cf27f808bff15ddd4a1339988a5f79 (patch)
tree001e99fc7e921fd6def3e7d528c75ce114a7daa0
parent57e563531d5315a8180583736bb1f7f44da370c8 (diff)
downloadbuild_tools-2d439aba48cf27f808bff15ddd4a1339988a5f79.zip
build_tools-2d439aba48cf27f808bff15ddd4a1339988a5f79.tar.gz
build_tools-2d439aba48cf27f808bff15ddd4a1339988a5f79.tar.xz
Clean up old packages on the public repo
-rwxr-xr-xsssd-nightly.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/sssd-nightly.sh b/sssd-nightly.sh
index 3d57d16..32f12b5 100755
--- a/sssd-nightly.sh
+++ b/sssd-nightly.sh
@@ -169,10 +169,14 @@ echo "===== Removing Source Tree =====" >> $LOGFILE
cd /local/sgallagh && rm -Rf sssd-$datestamp
echo "===== PUBLISHING FEDORA 11 YUM REPOSITORY =====" >> $LOGFILE
-scp -i /local/sgallagh/.ssh/repo.priv -r /local/sgallagh/repos/f11 sgallagh@fedorapeople.org:public_html/repo/
+ssh -i /local/sgallagh/.ssh/repo.priv sgallagh@fedorapeople.org \
+ "rm -f `find ~/public_html/repo/f11 -type f -daystart -ctime +6|grep sssd-`"
+scp -i /local/sgallagh/.ssh/repo.priv -pqr /local/sgallagh/repos/f11 sgallagh@fedorapeople.org:public_html/repo/
echo "===== PUBLISHING RHEL 5 YUM REPOSITORY =====" >> $LOGFILE
-scp -i /local/sgallagh/.ssh/repo.priv -r /local/sgallagh/repos/rhel5 sgallagh@fedorapeople.org:public_html/repo/
+ssh -i /local/sgallagh/.ssh/repo.priv sgallagh@fedorapeople.org \
+ "rm -f `find ~/public_html/repo/f11 -type f -daystart -ctime +6|grep sssd-`"
+scp -i /local/sgallagh/.ssh/repo.priv -pqr /local/sgallagh/repos/rhel5 sgallagh@fedorapeople.org:public_html/repo/
echo "===== BUILD CONCLUDED AT `date` =====" >> $LOGFILE