1
0

test de la présence des dossier avant rsync

This commit is contained in:
Daniel Tartavel 2020-04-07 20:40:14 +02:00
parent 4d0db03fc1
commit c6ec23e40c

View File

@ -12,10 +12,13 @@ for X in 7 8
fi fi
for ARCH in $ARCH_LIST for ARCH in $ARCH_LIST
{ {
if [ -d RPMS/$ARCH ];then
if [ "$ARCH" = "noarch" ]; then if [ "$ARCH" = "noarch" ]; then
for MARCH in $ARCHLIST for MARCH in $ARCHLIST
{ {
if [ -d $MIRRORPATH/$X/$MARCH/media/core/ ]; then
rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$MARCH/media/core/ rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$MARCH/media/core/
fi
} }
else else
rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/ rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/
@ -24,6 +27,7 @@ for X in 7 8
exit 1 exit 1
fi fi
fi fi
fi
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir --mediacfg $MIRRORPATH/$X/$ARCH/media/media_info/media.cfg $MIRRORPATH/$X/$ARCH nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir --mediacfg $MIRRORPATH/$X/$ARCH/media/media_info/media.cfg $MIRRORPATH/$X/$ARCH
} }
} }