Merge "Remove opensuse tumbleweed from our mirrors"
This commit is contained in:
commit
0c403be6da
@ -39,7 +39,8 @@ K5START="k5start -t -f /etc/opensuse.keytab service/opensuse-mirror -- $TIMEOUT"
|
|||||||
# NOTE(hwoarang): Ensure old distros are not mirrored aymore
|
# NOTE(hwoarang): Ensure old distros are not mirrored aymore
|
||||||
for REPO in distribution/leap/15.1 update/leap/15.1 \
|
for REPO in distribution/leap/15.1 update/leap/15.1 \
|
||||||
repositories/Cloud:/OpenStack:/Stein/openSUSE_Leap_15.1 \
|
repositories/Cloud:/OpenStack:/Stein/openSUSE_Leap_15.1 \
|
||||||
repositories/Cloud:/OpenStack:/Master/openSUSE_Leap_15.1 ; do
|
repositories/Cloud:/OpenStack:/Master/openSUSE_Leap_15.1 \
|
||||||
|
update/tumbleweed tumbleweed ; do
|
||||||
if [ -d $BASE/$REPO ]; then
|
if [ -d $BASE/$REPO ]; then
|
||||||
$K5START rm -rf $BASE/$REPO
|
$K5START rm -rf $BASE/$REPO
|
||||||
fi
|
fi
|
||||||
@ -92,36 +93,6 @@ for obs_repo in ${OBS_REPOS[@]}; do
|
|||||||
$OBS_MIRROR/$obs_repo/ $BASE/$REPO
|
$OBS_MIRROR/$obs_repo/ $BASE/$REPO
|
||||||
done
|
done
|
||||||
|
|
||||||
REPO=tumbleweed
|
|
||||||
if ! [ -f $BASE/$REPO ]; then
|
|
||||||
$K5START mkdir -p $BASE/$REPO/repo/oss/
|
|
||||||
fi
|
|
||||||
|
|
||||||
date --iso-8601=ns
|
|
||||||
echo "Running rsync distribution $REPO ..."
|
|
||||||
# TW is large and can have failures, be more resilient
|
|
||||||
$K5START rsync -rltvz \
|
|
||||||
--delete --stats \
|
|
||||||
--delete-excluded \
|
|
||||||
--exclude="i586" \
|
|
||||||
--ignore-errors \
|
|
||||||
$MIRROR/$REPO/repo/oss/ $BASE/$REPO/repo/oss/ || :
|
|
||||||
|
|
||||||
REPO=update/tumbleweed
|
|
||||||
if ! [ -f $BASE/$REPO ]; then
|
|
||||||
$K5START mkdir -p $BASE/$REPO
|
|
||||||
fi
|
|
||||||
|
|
||||||
date --iso-8601=ns
|
|
||||||
echo "Running rsync distribution $REPO ..."
|
|
||||||
$K5START rsync -rltvz \
|
|
||||||
--timeout=600 \
|
|
||||||
--delete --stats \
|
|
||||||
--delete-excluded \
|
|
||||||
--exclude="i586" \
|
|
||||||
--ignore-errors \
|
|
||||||
$OBS_MIRROR/openSUSE:/Factory:/Update/standard/ $BASE/$REPO || :
|
|
||||||
|
|
||||||
date --iso-8601=ns | $K5START tee $BASE/timestamp.txt
|
date --iso-8601=ns | $K5START tee $BASE/timestamp.txt
|
||||||
echo "rsync completed successfully, running vos release."
|
echo "rsync completed successfully, running vos release."
|
||||||
vos_release $MIRROR_VOLUME
|
vos_release $MIRROR_VOLUME
|
||||||
|
Loading…
x
Reference in New Issue
Block a user