Merge "Cleanup the Fedora 36 mirror content"
This commit is contained in:
commit
d19c26a024
@ -38,9 +38,21 @@ echo_ts "----- START FEDORA MIRROR RSYNC RUN -----"
|
|||||||
|
|
||||||
# Purge old releases
|
# Purge old releases
|
||||||
echo_ts "Purging old mirrors"
|
echo_ts "Purging old mirrors"
|
||||||
$K5START rm -rf $BASE/releases/35 $BASE/updates/35 $BASE/releases/37 $BASE/updates/37 $BASE/development/rawhide
|
$K5START rm -rf $BASE/releases/35 $BASE/updates/35 $BASE/releases/36 $BASE/updates/36 $BASE/releases/37 $BASE/updates/37 $BASE/development/rawhide
|
||||||
|
|
||||||
for REPO in releases/36; do
|
# We set RELEASE_REPOS and UPDATE_REPOS to empty strings to fail
|
||||||
|
# the conditions below skipping any rsyncing. We don't just simply
|
||||||
|
# exit 0 here because we do need the vos release at the end to run
|
||||||
|
# and publish the cleanups done by the rm above.
|
||||||
|
#
|
||||||
|
# The code below isn't simply removed to make it easy for people to
|
||||||
|
# resurrect this in the future should conditions change making
|
||||||
|
# fedora test nodes a more viable option again.
|
||||||
|
|
||||||
|
# A list of release repos to sync eg 'releases/36 releases/37'
|
||||||
|
RELEASE_REPOS=''
|
||||||
|
if [ -n "$RELEASE_REPOS" ]; then
|
||||||
|
for REPO in "$RELEASE_REPOS"; do
|
||||||
if ! [ -f $BASE/$REPO ]; then
|
if ! [ -f $BASE/$REPO ]; then
|
||||||
$K5START mkdir -p $BASE/$REPO
|
$K5START mkdir -p $BASE/$REPO
|
||||||
fi
|
fi
|
||||||
@ -70,9 +82,13 @@ for REPO in releases/36; do
|
|||||||
--exclude=".nfs*" \
|
--exclude=".nfs*" \
|
||||||
$MIRROR/$REPO/ $BASE/$REPO/
|
$MIRROR/$REPO/ $BASE/$REPO/
|
||||||
echo_ts "... done"
|
echo_ts "... done"
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
for REPO in updates/36; do
|
# A list of update repos to sync eg 'updates/36 updates/37'
|
||||||
|
UPDATE_REPOS=''
|
||||||
|
if [ -n "$UPDATE_REPOS" ]; then
|
||||||
|
for REPO in "$UPDATE_REPOS"; do
|
||||||
if ! [ -f $BASE/$REPO ]; then
|
if ! [ -f $BASE/$REPO ]; then
|
||||||
$K5START mkdir -p $BASE/$REPO
|
$K5START mkdir -p $BASE/$REPO
|
||||||
fi
|
fi
|
||||||
@ -94,7 +110,8 @@ for REPO in updates/36; do
|
|||||||
--exclude=".nfs*" \
|
--exclude=".nfs*" \
|
||||||
$MIRROR/$REPO/ $BASE/$REPO/
|
$MIRROR/$REPO/ $BASE/$REPO/
|
||||||
echo_ts "... done"
|
echo_ts "... done"
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
# TODO(pabelanger): Validate rsync process
|
# TODO(pabelanger): Validate rsync process
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user