1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__config_lalis/cp-task-lalis.sh

23 lines
592 B
Bash
Raw Normal View History

2021-09-29 14:27:51 +02:00
#!/usr/bin/bash
MIRRORPATH=/mnt/lalis/mirror/mageia/lalis/
2022-12-26 18:38:20 +01:00
for X in 8 9
2021-09-29 14:27:51 +02:00
{
rsync -aP SRPMS/*mga$X* $MIRRORPATH/$X/SRPMS/core/
if [ $? -ne 0 ]; then
echo "error rsync : $LINENO"
#exit 1
fi
for ARCH in x86_64 i586 #aarch64 armv7hl
{
rsync -aP RPMS/noarch/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/
if [ $? -ne 0 ]; then
echo "error rsync : $LINENO"
#exit 1
fi
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir --mediacfg $MIRRORPATH/$X/$ARCH/media/media_info/media.cfg $MIRRORPATH/$X/$ARCH
}
}
chmod a+rX -R .