Skip to content

Commit

Permalink
rsync to project directory and cleanup cache after
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Aug 27, 2023
1 parent 59c1f84 commit a3686a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion puppet/modules/web/templates/deploy-stagingyum.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
$SSH_ORIGINAL_COMMAND

# Publish the site - stderr/out redirect is required to stop the noninteractive shell from hanging
rsync -rvx --delete-after <%= @home %>/rsync_cache/$PROJECT/$RELEASE <%= @yum_directory %>/ 2>&1 >/dev/null ;
rsync -rvx --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 a3686a6

Please sign in to comment.