Skip to content

Commit

Permalink
delete published rpms from the cache
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Sep 20, 2024
1 parent 9b9ec51 commit 4391e03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions puppet/modules/web/templates/deploy-stagingrpm.sh.epp
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions puppet/modules/web/templates/deploy-stagingyum.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4391e03

Please sign in to comment.