test de la présence des dossier avant rsync
This commit is contained in:
parent
4d0db03fc1
commit
c6ec23e40c
@ -12,19 +12,23 @@ for X in 7 8
|
|||||||
fi
|
fi
|
||||||
for ARCH in $ARCH_LIST
|
for ARCH in $ARCH_LIST
|
||||||
{
|
{
|
||||||
if [ "$ARCH" = "noarch" ]; then
|
if [ -d RPMS/$ARCH ];then
|
||||||
for MARCH in $ARCHLIST
|
if [ "$ARCH" = "noarch" ]; then
|
||||||
{
|
for MARCH in $ARCHLIST
|
||||||
rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$MARCH/media/core/
|
{
|
||||||
}
|
if [ -d $MIRRORPATH/$X/$MARCH/media/core/ ]; then
|
||||||
else
|
rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$MARCH/media/core/
|
||||||
rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/
|
fi
|
||||||
if [ $? -ne 0 ]; then
|
}
|
||||||
echo "error rsync : $LINENO"
|
else
|
||||||
exit 1
|
rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "error rsync : $LINENO"
|
||||||
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
chmod a+rX -R .
|
chmod a+rX -R .
|
||||||
|
Reference in New Issue
Block a user