diff --git a/puppet/modules/web/templates/deploy-stagingrpm.sh.epp b/puppet/modules/web/templates/deploy-stagingrpm.sh.epp index 4e854f64c..f8eb0b80f 100644 --- a/puppet/modules/web/templates/deploy-stagingrpm.sh.epp +++ b/puppet/modules/web/templates/deploy-stagingrpm.sh.epp @@ -13,3 +13,5 @@ # Publish the repo - stderr/out redirect is required to stop the noninteractive shell from hanging rsync --recursive --times --verbose --one-file-system --delete-after <%= $home %>/rsync_cache/$PROJECT/$RELEASE <%= $rpm_staging_directory %>/$PROJECT/ 2>&1 >/dev/null ; + # Cleanup - no need to keep the rpms + find <%= @home %>/rsync_cache/$PROJECT/$RELEASE -iname '*.rpm' -delete || true diff --git a/puppet/modules/web/templates/deploy-stagingyum.sh.erb b/puppet/modules/web/templates/deploy-stagingyum.sh.erb index 9fd6ebe80..cdf064795 100644 --- a/puppet/modules/web/templates/deploy-stagingyum.sh.erb +++ b/puppet/modules/web/templates/deploy-stagingyum.sh.erb @@ -9,3 +9,5 @@ # Publish the repo - stderr/out redirect is required to stop the noninteractive shell from hanging rsync --recursive --times --verbose --one-file-system --delete-after <%= @home %>/rsync_cache/$PROJECT/$RELEASE <%= @yum_directory %>/$PROJECT/ 2>&1 >/dev/null ; + # Cleanup - no need to keep the rpms + find <%= @home %>/rsync_cache/$PROJECT/$RELEASE -iname '*.rpm' -delete || true