[UPDATE] - script init dl sync repo

This commit is contained in:
2021-12-01 17:02:06 +01:00
parent 12d54c0d06
commit a777a41045
4 changed files with 3155 additions and 0 deletions
Executable
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
[[ ! -d /data/log ]] && mkdir /data/log
[[ ! -d /data/repo ]] && mkdir /data/repo
for Repo in $(yum repolist | grep x86_64 | awk -F'/' '{print $1}')
do
echo "$Repo"
reposync --gpgcheck -l --repoid=${Repo} --download_path=/data/repo/ | tee /data/log/${Repo}.log
done