1
0

Compare commits

...

10 Commits

Author SHA1 Message Date
Daniel Tartavel
e1b27bcf97 bug 2020-04-13 20:33:04 +02:00
Daniel Tartavel
6b6a5051ee bug 2020-04-13 20:29:53 +02:00
Daniel Tartavel
afeafdd192 update.sh 2020-04-13 20:23:45 +02:00
1e0b46841a ajout de update.sh 2020-04-13 20:18:24 +02:00
Daniel Tartavel
0ee5f9bb8c bug dans chmod 2020-04-13 20:10:35 +02:00
Daniel Tartavel
c4017756a5 ajout de la signature des paquets 2020-04-13 20:07:48 +02:00
Daniel Tartavel
8b553bfe4e ajout debuggage 2020-04-12 11:38:35 +02:00
Daniel Tartavel
1cf9a41cc1 flushing 2020-04-12 11:16:44 +02:00
Daniel Tartavel
480027bf78 renommage
Signed-off-by: Daniel Tartavel <contact@librepc.com>
2020-04-12 11:14:24 +02:00
DTux
0cb17ed6aa first commit 2020-04-12 08:55:13 +00:00
2 changed files with 50 additions and 0 deletions

36
cp2mirror.sh Normal file
View File

@ -0,0 +1,36 @@
#!/usr/bin/bash
MIRRORPATH="/mnt/lalis/mirror/mageia/lalis"
for X in 7 8
{
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
{
if [ -d RPMS/$ARCH ]; then
echo "rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/"
rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/
if [ $? -ne 0 ]; then
echo "error rsync : $LINENO"
exit 1
fi
fi
if [ -d RPMS/noarch ]; then
echo "rsync -aP RPMS/noarch/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/"
rsync -aP RPMS/noarch/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/
if [ $? -ne 0 ]; then
echo "error rsync : $LINENO"
exit 1
fi
fi
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/
}
}
chmod a+rX -R $MIRRORPATH
echo "signing rpms"
find $MIRRORPATH -name "*.rpm" -exec rpmsign --resign {} ";"

14
update.sh Normal file
View File

@ -0,0 +1,14 @@
#!/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 {} ";"