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__cp2mirror/update.sh

15 lines
429 B
Bash
Raw Permalink Normal View History

2020-04-13 20:18:24 +02:00
#!/usr/bin/bash
2020-04-13 20:23:45 +02:00
MIRRORPATH="/mnt/lalis/mirror/mageia/lalis"
2020-04-13 20:18:24 +02:00
2020-04-13 20:23:45 +02:00
for X in 7 8
{
2020-04-13 20:33:04 +02:00
for ARCH in x86_64 i586 #aarch64 armv7hl
{
nice -n 19 /usr/bin/gendistrib --nobadrpm --blind --skipmissingdir --mediacfg $MIRRORPATH/$X/$ARCH/media/media_info/media.cfg $MIRRORPATH/$X/$ARCH
}
2020-04-13 20:23:45 +02:00
nice -n 19 /usr/bin/createrepo_c /mnt/lalis/mirror/mageia/lalis/$X/
}
echo "signing rpms"
find $MIRRORPATH -name "*.rpm" -exec rpmsign --resign {} ";"