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> Modify script to include os filepath Signed-off-by: james02135 <james02135@hotmail.com>
This commit is contained in:
parent
9438b39fd1
commit
31fb825690
1 changed files with 3 additions and 3 deletions
|
@ -14,8 +14,8 @@ for basearch in aarch64 ppc64le s390x x86_64
|
||||||
do
|
do
|
||||||
for repo in BaseOS AppStream CRB
|
for repo in BaseOS AppStream CRB
|
||||||
do
|
do
|
||||||
mkdir -p ${DESTDIR}/${repo}
|
mkdir -p $DESTDIR/$repo/$basearch/os/
|
||||||
cd ${DESTDIR}
|
cd $DESTDIR/$repo/$basearch/os/
|
||||||
reposync --download-metadata --disablerepo=* --repofrompath=$repo,https://$SERVER/$TOPDIR/$repo/$basearch/os --enablerepo=$repo
|
reposync --download-metadata --disablerepo=* --repofrompath=$repo,https://$SERVER/$TOPDIR/$repo/$basearch/os/ --enablerepo=$repo
|
||||||
done
|
done
|
||||||
done
|
done
|
Loading…
Add table
Add a link
Reference in a new issue