Compare commits
No commits in common. "e1b27bcf97236811d95b970471613b8fca7053e1" and "9b670aa9b486d3043c94f4e346139bca98a8e229" have entirely different histories.
e1b27bcf97
...
9b670aa9b4
36
cp2mirror.sh
36
cp2mirror.sh
@ -1,36 +0,0 @@
|
||||
#!/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
14
update.sh
@ -1,14 +0,0 @@
|
||||
#!/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 {} ";"
|
Reference in New Issue
Block a user