Quelques petites améliorations
This commit is contained in:
parent
2d17309a6e
commit
813e283c8d
@ -33,13 +33,13 @@ iferror( ) #$RESULT, $TXT, $LINENO
|
|||||||
echo -e "$2: réussi"
|
echo -e "$2: réussi"
|
||||||
echo -e "$2: réussi" >>$MSG
|
echo -e "$2: réussi" >>$MSG
|
||||||
else
|
else
|
||||||
echo -e "\e[36m$3 - $2\e[0m: échoué"
|
echo -e "\e[36mligne $3 - $2\e[0m: échoué"
|
||||||
echo -e "$3 - $2: échoué" >>$MSG
|
echo -e "ligne $3 - $2: échoué" >>$MSG
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
title "Synchronisation miroirs Mageia"
|
echo "Synchronisation miroirs Mageia"
|
||||||
pidof -o %PPID -x -s mirror_mageia
|
pidof -o %PPID -x -s mirror_mageia
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
echo "" >$MSG
|
echo "" >$MSG
|
||||||
@ -47,6 +47,7 @@ if [ $? -eq 0 ];then
|
|||||||
else
|
else
|
||||||
#Mageia current version
|
#Mageia current version
|
||||||
echo "" >$MSG
|
echo "" >$MSG
|
||||||
|
title "Synchronisation de Mageia $PRESENT"
|
||||||
rsync -a -H -S -v --delete-after --delete-excluded --delay-updates --exclude="*testing" --exclude="*debug/" --exclude="SRPMS/" $SERVEUR/distrib/$PRESENT/ "$MIRRORPATH"/distrib/$PRESENT/
|
rsync -a -H -S -v --delete-after --delete-excluded --delay-updates --exclude="*testing" --exclude="*debug/" --exclude="SRPMS/" $SERVEUR/distrib/$PRESENT/ "$MIRRORPATH"/distrib/$PRESENT/
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|
||||||
@ -82,7 +83,7 @@ else
|
|||||||
|
|
||||||
|
|
||||||
#cauldron
|
#cauldron
|
||||||
title "syncing cauldron"
|
title "Synchronisation de Mageia cauldron"
|
||||||
rsync -v -aHS --delete-after --delete-excluded --delay-updates --exclude=SRPMS/ --exclude "armv5tl/" --exclude=*testing --exclude="*debug/" $SERVEUR/distrib/cauldron/ "$MIRRORPATH"/distrib/cauldron/
|
rsync -v -aHS --delete-after --delete-excluded --delay-updates --exclude=SRPMS/ --exclude "armv5tl/" --exclude=*testing --exclude="*debug/" $SERVEUR/distrib/cauldron/ "$MIRRORPATH"/distrib/cauldron/
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
cd "$MIRRORPATH"/distrib/cauldron
|
cd "$MIRRORPATH"/distrib/cauldron
|
||||||
@ -112,7 +113,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#Mageia $OLD
|
#Mageia $OLD
|
||||||
title "syncing Mageia $OLD"
|
title "Synchronisation de Mageia $OLD"
|
||||||
rsync -a -H -S -v --delete-after --delete-excluded --delay-updates --exclude=*testing --exclude=clef --exclude="*debug/" --exclude="armv5tl/" --exclude="SRPMS/" $SERVEUR/distrib/$OLD/ "$MIRRORPATH"/distrib/$OLD/
|
rsync -a -H -S -v --delete-after --delete-excluded --delay-updates --exclude=*testing --exclude=clef --exclude="*debug/" --exclude="armv5tl/" --exclude="SRPMS/" $SERVEUR/distrib/$OLD/ "$MIRRORPATH"/distrib/$OLD/
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user