Write sync script for centos-10 using reposync
Signed-off-by: james02135 <james02135@hotmail.com> Change variable names to basearch and repo as necessary, fix loop issues Signed-off-by: james02135 <james02135@hotmail.com> Fix syntax errors in nested for loop Signed-off-by: james02135 <james02135@hotmail.com>
This commit is contained in:
parent
6589d38032
commit
768b6b0075
1 changed files with 21 additions and 0 deletions
21
roles/batcave/files/centos-10-sync
Normal file
21
roles/batcave/files/centos-10-sync
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
#Sync using reposync instead of rsync until available
|
||||
SERVER=composes.stream.centos.org
|
||||
TOPDIR=stream-10/production/latest-CentOS-Stream/compose
|
||||
|
||||
## mirror CentOS-10
|
||||
|
||||
DESTDIR=/mnt/fedora/app/fi-repo/centos/centos-10
|
||||
|
||||
mkdir -p ${DESTDIR}
|
||||
|
||||
for basearch in aarch64 ppc64le s390x x86_64
|
||||
do
|
||||
for repo in BaseOS AppStream CRB
|
||||
do
|
||||
mkdir -p ${DESTDIR}/${repo}
|
||||
cd ${DESTDIR}
|
||||
reposync --download-metadata --disablerepo=* --repofrompath=$repo,https://$SERVER/$TOPDIR/$repo/$basearch/os --enablerepo=$repo
|
||||
done
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue