From fd7ffbcab45ab6cc5ce6ed2447d6cee247b22587 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Mon, 28 Oct 2019 13:10:17 +1100 Subject: [PATCH] Fedora mirror - remove 28 Add a purge phase to remove old releases; remove Fedora 28 and stop mirroring. Update the atomic list while we're there. Fedora 28 was removed with Ic0b4b065a217dcfaa8c230cda53114793e93b803 Change-Id: If713844ac90ea37e8c4db30108c45d7a59832776 --- .../roles/mirror-update/files/fedora-mirror-update | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/mirror-update/files/fedora-mirror-update b/playbooks/roles/mirror-update/files/fedora-mirror-update index ca1ee276d7..87cb45caad 100755 --- a/playbooks/roles/mirror-update/files/fedora-mirror-update +++ b/playbooks/roles/mirror-update/files/fedora-mirror-update @@ -40,7 +40,11 @@ K5START="k5start -t -f /etc/fedora.keytab service/fedora-mirror -- ${TIMEOUT}" echo_ts "----- START FEDORA MIRROR RSYNC RUN -----" -for REPO in releases/28 releases/29 releases/30; do +# Purge old releases +echo_ts "Purging old mirrors" +$K5START rm -rf $BASE/releases/28 $BASE/updates/28 + +for REPO in releases/29 releases/30; do if ! [ -f $BASE/$REPO ]; then $K5START mkdir -p $BASE/$REPO fi @@ -65,7 +69,7 @@ for REPO in releases/28 releases/29 releases/30; do echo_ts "... done" done -for REPO in updates/28 updates/29 updates/30; do +for REPO in updates/29 updates/30; do if ! [ -f $BASE/$REPO ]; then $K5START mkdir -p $BASE/$REPO fi @@ -99,6 +103,8 @@ $K5START rsync -rltDiz \ --exclude="Atomic/" \ --exclude="Fedora-Atomic-25-*/" \ --exclude="Fedora-Atomic-26-*/" \ + --exclude="Fedora-Atomic-27-*/" \ + --exclude="Fedora-Atomic-28-*/" \ --exclude="ppc64le/" \ --exclude="images/*.raw.xz" \ --exclude="images/*.box" \