diff --git a/modules/openstack_project/files/mirror/opensuse-mirror-update.sh b/modules/openstack_project/files/mirror/opensuse-mirror-update.sh index 049ef10fda..bd17d1e228 100644 --- a/modules/openstack_project/files/mirror/opensuse-mirror-update.sh +++ b/modules/openstack_project/files/mirror/opensuse-mirror-update.sh @@ -61,6 +61,20 @@ $K5START rsync -rlptDvz \ --exclude="i586" \ $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 -rlptDvz \ + --delete --stats \ + --delete-excluded \ + --exclude="i586" \ + rsync://rsync.opensuse.org/buildservice-repos-main/openSUSE:/Factory:/Update/standard/ \ + $BASE/$REPO + date --iso-8601=ns | $K5START tee $BASE/timestamp.txt echo "rsync completed successfully, running vos release." k5start -t -f /etc/afsadmin.keytab service/afsadmin -- vos release -v $MIRROR_VOLUME