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
Daniel Tartavel e1b27bcf97 bug
2020-04-13 20:33:04 +02:00

15 lines
429 B
Bash

#!/usr/bin/bash
MIRRORPATH="/mnt/lalis/mirror/mageia/lalis"
for X in 7 8
{
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
}
nice -n 19 /usr/bin/createrepo_c /mnt/lalis/mirror/mageia/lalis/$X/
}
echo "signing rpms"
find $MIRRORPATH -name "*.rpm" -exec rpmsign --resign {} ";"