#!/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 {} ";"