diff --git a/mirror_mageia_hd b/mirror_mageia_hd index e3c2fbf..f5c7bc3 100755 --- a/mirror_mageia_hd +++ b/mirror_mageia_hd @@ -14,7 +14,7 @@ do dossier=$DIRECTORY/mageia/distrib elif [ -e "$DIRECTORY/extlinux" ]; then echo "$DIRECTORY/extlinux trouvé" - boot="$DIRECTORY/" + boot="$DIRECTORY" fi fi done @@ -27,14 +27,14 @@ if [ -z $dossier ] || [ -z $boot ]; then dossier=$DIRECTORY/mageia/distrib elif [ -e "$DIRECTORY/grub/menu.lst" ]; then echo "$DIRECTORY/grub/menu.lst trouvé" - boot="$DIRECTORY/" + boot="$DIRECTORY" fi fi done fi if [ -z $dossier ] || [ -z $boot ]; then - + echo "Erreur dossiers non trouvés" echo "BOOT=$boot" echo "Dossier=$dossier" exit 1 @@ -48,15 +48,15 @@ fi if [ -n $dossier ] && [ -n $boot ];then echo "rsync -avP $param $serveur/mageia/distrib/$version/ $dossier/$version/" - rsync -aP $param $serveur/mageia/distrib/$version/x86_64/ $dossier/$version/x86_64/ + rsync -aP $param $serveur/mageia/distrib/$version $dossier/ cd $dossier/$version echo "rsync -aP i586/isolinux/i386/vmlinuz $boot/vmlinuz_"$version"_i586" - rsync -aP i586/isolinux/i386/vmlinuz $boot/vmlinuz_"$version"_i586 - echo" rsync -aP x86_64/isolinux/x86_64/vmlinuz $boot/vmlinuz_"$version"_x86_64" - rsync -aP x86_64/isolinux/x86_64/vmlinuz $boot/vmlinuz_"$version"_x86_64 - rsync -aP i586/isolinux/i386/all.rdz $boot/all_"$version"_i586.rdz - rsync -aP x86_64/isolinux/x86_64/all.rdz $boot/all_"$version"_x86_64.rdz + rsync -aP i586/isolinux/i386/vmlinuz "$boot"/vmlinuz_"$version"_i586 + echo "rsync -aP x86_64/isolinux/x86_64/vmlinuz $boot/vmlinuz_"$version"_x86_64" + rsync -aP x86_64/isolinux/x86_64/vmlinuz "$boot"/vmlinuz_"$version"_x86_64 + rsync -aP i586/isolinux/i386/all.rdz "$boot"/all_"$version"_i586.rdz + rsync -aP x86_64/isolinux/x86_64/all.rdz "$boot"/all_"$version"_x86_64.rdz # if [ -d "/mirror/mageia/distrib/cauldron" ];then # serveur='/mirror'