copie toute architectures
This commit is contained in:
parent
c13b97e04b
commit
4d0db03fc1
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
MIRRORPATH="/mnt/lalis/mirror/mageia/lalis"
|
MIRRORPATH="/mnt/lalis/mirror/mageia/lalis"
|
||||||
|
ARCH_LIST="i586 x86_64 noarch aarch64 armv7hl"
|
||||||
|
|
||||||
for X in 7 8
|
for X in 7 8
|
||||||
{
|
{
|
||||||
@ -9,13 +10,20 @@ for X in 7 8
|
|||||||
echo "error rsync : $LINENO"
|
echo "error rsync : $LINENO"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
for ARCH in x86_64 i586 noarch #aarch64 armv7hl
|
for ARCH in $ARCH_LIST
|
||||||
{
|
{
|
||||||
rsync -aP RPMS/noarch/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/
|
if [ "$ARCH" = "noarch" ]; then
|
||||||
if [ $? -ne 0 ]; then
|
for MARCH in $ARCHLIST
|
||||||
echo "error rsync : $LINENO"
|
{
|
||||||
exit 1
|
rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$MARCH/media/core/
|
||||||
fi
|
}
|
||||||
|
else
|
||||||
|
rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "error rsync : $LINENO"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir --mediacfg $MIRRORPATH/$X/$ARCH/media/media_info/media.cfg $MIRRORPATH/$X/$ARCH
|
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir --mediacfg $MIRRORPATH/$X/$ARCH/media/media_info/media.cfg $MIRRORPATH/$X/$ARCH
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user