Delete centos 8-stream mirror content
There is a README and a few empty directories to clean up from the 8-stream mirror content. This should be safe to land at any time since the mirror is no longer functional after upstream cleanup that we synced. Change-Id: I467c1f575e9461a8bf8d37697161e65114e5161a
This commit is contained in:
parent
4a631dd201
commit
dcec64c67b
@ -39,36 +39,13 @@ K5START="k5start -t -f /etc/centos.keytab service/centos-mirror -- $TIMEOUT"
|
||||
|
||||
if [[ ${DRY_RUN:-0} -ne 1 ]]; then
|
||||
# Cleanup old repos
|
||||
for REPO in 7 ; do
|
||||
for REPO in 8-stream ; do
|
||||
if [ -d $BASE/$REPO/ ]; then
|
||||
$K5START rm -rf $BASE/$REPO/
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
#
|
||||
# -- Centos 8-stream --
|
||||
#
|
||||
|
||||
# Access request in https://pagure.io/centos-infra/issue/1354
|
||||
MIRROR=rsync://msync.centos.org/centos-full/centos/8-stream/
|
||||
|
||||
if ! [ -f $BASE/8-stream ]; then
|
||||
$K5START mkdir -p $BASE/8-stream
|
||||
fi
|
||||
date --iso-8601=ns
|
||||
echo "Running Centos 8-stream rsync..."
|
||||
$K5START ${RSYNC} \
|
||||
--delete \
|
||||
--delete-excluded \
|
||||
--exclude="isos" \
|
||||
--exclude="images/" \
|
||||
--exclude="isolinux/" \
|
||||
--exclude="ppc64le*" \
|
||||
--exclude="*.i686.rpm" \
|
||||
--exclude=".*" \
|
||||
$MIRROR $BASE/8-stream
|
||||
|
||||
if [[ ${DRY_RUN:-0} -ne 1 ]]; then
|
||||
date --iso-8601=ns | $K5START tee $BASE/timestamp.txt
|
||||
echo "rsync completed successfully, running vos release."
|
||||
|
Loading…
x
Reference in New Issue
Block a user