From ca768c3000814d48cd79fe1249cebcc979ace95a Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Fri, 31 May 2019 15:28:04 +0000 Subject: [PATCH] send invalidation stdout to /dev/null for now to shut up cron Signed-off-by: Rick Elrod --- roles/s3-mirror/files/s3-sync-path.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/s3-mirror/files/s3-sync-path.sh b/roles/s3-mirror/files/s3-sync-path.sh index 2962d68ac5..81386ed36b 100644 --- a/roles/s3-mirror/files/s3-sync-path.sh +++ b/roles/s3-mirror/files/s3-sync-path.sh @@ -42,13 +42,13 @@ echo "Ending $1 sync at $(date)" >> /var/log/s3-mirror/timestamps # Always do the invalidations because they are quick and prevent issues # depending on which path is synced. for file in $(echo /srv/pub/epel/6/*/repodata/repomd.xml | sed 's#/srv##g'); do - aws cloudfront create-invalidation --distribution-id E2KJMDC0QAJDMU --paths "$file" + aws cloudfront create-invalidation --distribution-id E2KJMDC0QAJDMU --paths "$file" > /dev/null done for file in $(echo /srv/pub/epel/7/*/repodata/repomd.xml | sed 's#/srv##g'); do - aws cloudfront create-invalidation --distribution-id E2KJMDC0QAJDMU --paths "$file" + aws cloudfront create-invalidation --distribution-id E2KJMDC0QAJDMU --paths "$file" > /dev/null done for file in $(echo /srv/pub/fedora/linux/updates/*/*/*/repodata/repomd.xml | sed 's#/srv##g'); do - aws cloudfront create-invalidation --distribution-id E2KJMDC0QAJDMU --paths "$file" + aws cloudfront create-invalidation --distribution-id E2KJMDC0QAJDMU --paths "$file" > /dev/null done