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" \