[UPDATE] - esl compil + paquet + EPEL + codeready
This commit is contained in:
+5
-4
@@ -21,6 +21,7 @@ MoveCurr(){
|
||||
|
||||
Download (){
|
||||
Rep=$1
|
||||
RepoName=$2
|
||||
cpt=1
|
||||
#tput ed
|
||||
|
||||
@@ -32,20 +33,20 @@ Download (){
|
||||
OrpmName=$(basename ${Orpm:-/}| sed 's/-[0-9]/|/g' | cut -d"|" -f1)
|
||||
Rpm=$(find $Rep -type f -name "*.rpm" -printf "%T@ %p\n" | sort -n | cut -d' ' -f 2- | tail -n 1)
|
||||
RpmName=$(basename ${Rpm:-/}| sed 's/-[0-9]/|/g' | cut -d"|" -f1)
|
||||
Txt="Downloading ${RpmName:-/}"
|
||||
Txt="{$RepoName} Downloading ${RpmName:-/}"
|
||||
if [[ "${RpmName}" == "$OrpmName" ]] && [[ "$RpmName" != "/" ]]
|
||||
then
|
||||
RpmSize=$(du -s $Rpm|awk '{print $1}')
|
||||
OrpmSize=$(du -s $Orpm|awk '{print $1}')
|
||||
[[ "$RpmSize" -eq "$OrpmSize" ]] && Txt="Sync - RPM Signature"
|
||||
[[ "$RpmSize" -eq "$OrpmSize" ]] && Txt="{$RepoName} Sync - RPM Signature"
|
||||
fi
|
||||
[[ "$RpmName" != "/" ]] && Txt="Syncing metada"
|
||||
[[ "$RpmName" == "/" ]] && Txt="{$RepoName} Syncing metadata"
|
||||
|
||||
tput rc; tput el
|
||||
echo -ne "\r[${Curr}] - $Txt\r"
|
||||
|
||||
|
||||
sleep 0.2
|
||||
sleep 0.5
|
||||
done
|
||||
|
||||
|
||||
|
||||
+22
-3
@@ -31,10 +31,29 @@ function oraclelinux () {
|
||||
Majeur=$(echo ${osversion} | cut -d"." -f1)
|
||||
Mineur=$(echo ${osversion} | cut -d"." -f2)
|
||||
|
||||
test -L /data/repo/EPEL/x86_64 && Action "Delete Old Link" rm /data/repo/EPEL/x86_64
|
||||
Action "Create Dir ${osversion}" mkdir -p /data/repo/EPEL/
|
||||
RunScreen EPEL dnf reposync -g --newest-only --exclude='*.src' -p /data/repo/EPEL/ol${Majeur} --download-metadata --repoid=ol${Majeur}_developer_EPEL
|
||||
Download /data/repo/EPEL/ EPEL
|
||||
Action "Get in ${osversion} EPEL" cd /data/repo/EPEL/ol${Majeur}
|
||||
Action "Link SeaNaps environement EPEL" ln -s ol${Majeur}_EPEL x86_64
|
||||
|
||||
|
||||
|
||||
test -L /data/repo/OracleLinux/OL8/codeready/builder/x86_64 && Action "Delete Old Link" rm /data/repo/OracleLinux/OL8/codeready/builder/x86_64
|
||||
Action "Create Dir ${osversion}" mkdir -p /data/repo/OracleLinux/OL8/codeready/builder/
|
||||
RunScreen codeready dnf reposync -g --newest-only --exclude='*.src' -p /data/repo/OracleLinux/OL8/codeready/builder --download-metadata --repoid=ol${Majeur}_codeready_builder
|
||||
Download /data/repo/OracleLinux/OL8 codeready
|
||||
Action "Get in ${osversion} codeready" cd /data/repo/OracleLinux/OL8/codeready/builder
|
||||
Action "Link SeaNaps environement codeready" ln -s ol${Majeur}_codeready_builder x86_64
|
||||
|
||||
|
||||
|
||||
|
||||
test -L /data/repo/OracleLinux/${osversion}/appstream/x86_64 && Action "Delete Old Link" rm /data/repo/OracleLinux/${osversion}/appstream/x86_64
|
||||
Action "Create Dir ${osversion}" mkdir -p /data/repo/OracleLinux/${osversion}/appstream/
|
||||
RunScreen appstream dnf reposync -g --newest-only --exclude='*.src' -p /data/repo/OracleLinux/${osversion}/appstream/ --download-metadata --repoid=ol${Majeur}_appstream
|
||||
Download /data/repo/OracleLinux/${osversion}/appstream/
|
||||
Download /data/repo/OracleLinux/${osversion}/appstream/ appstream
|
||||
Action "Get in ${osversion} appstream" cd /data/repo/OracleLinux/${osversion}/appstream/
|
||||
Action "Link SeaNaps environement appstream" ln -s ol${Majeur}_appstream x86_64
|
||||
|
||||
@@ -42,8 +61,8 @@ function oraclelinux () {
|
||||
test -L /data/repo/OracleLinux/${osversion}/baseos/latest/x86_64 && Action "Delete Old Link" rm /data/repo/OracleLinux/${osversion}/baseos/latest/x86_64
|
||||
|
||||
Action "Create Dir ${osversion}" mkdir -p /data/repo/OracleLinux/${osversion}/baseos/latest
|
||||
RunScreen appstream dnf reposync -g --newest-only --exclude='*.src' -p /data/repo/OracleLinux/${osversion}/baseos/latest --download-metadata --repoid=ol${Majeur}_u${Mineur}_baseos_base
|
||||
Download /data/repo/OracleLinux/${osversion}/baseos
|
||||
RunScreen baseos dnf reposync -g --newest-only --exclude='*.src' -p /data/repo/OracleLinux/${osversion}/baseos/latest --download-metadata --repoid=ol${Majeur}_u${Mineur}_baseos_base
|
||||
Download /data/repo/OracleLinux/${osversion}/baseos baseos
|
||||
Action "Get in ${osversion} baseos" cd /data/repo/OracleLinux/${osversion}/baseos/latest
|
||||
Action "Link SeaNaps environement baseOS" ln -s ol${Majeur}_u${Mineur}_baseos_base x86_64
|
||||
|
||||
|
||||
Reference in New Issue
Block a user