Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1010 → Rev 1012

/scripts/alcasar-urpmi.sh
58,21 → 58,20
fi
done
IFS="$old"
if [ $unknown_os != 3 ]
if [[ ( $unknown_os != 3 || "$DISTRIBUTION" != "Mageia" ) && ( "$CURRENT_VERSION" != "2" ) ]]
then
echo "le système installé n'est pas reconnu"
echo "the installed operating system is unknown"
echo "le système Linux installé n'est pas conforme. Installez Mageia2 (cf documentation d'installation)"
echo "the installed Linux operating system isn't conform. Install Mageia2 (see installation documentation)"
if [ -e /tmp/alcasar-conf.tar.gz ]
then
echo
echo "La migration automatique du système ne peut pas être réalisée."
echo "Récupérez le fichier /tmp/alcasar-conf.tar.gz et faites une mise à jour manuelle (cf. readme.txt)."
echo "The automatic system update can't perform."
echo "Retrieve the file /tmp/alcasar-conf.tar.gz and do a manual update (see readme.txt)."
fi
exit 1
fi
if [ "$DISTRIBUTION" == "Mandriva Linux" ]
then
echo "La migration automatique du système ne peut être réalisée."
echo "Récupérez le fichier /tmp/alcasar-conf.tar.gz et faites une mise à jour manuelle (cf. readme.txt)."
echo "The automatic system update can't perform."
echo "Retrieve the file /tmp/alcasar-conf.tar.gz and do a manual update (see readme.txt)."
ls -l /tmp
exit 1
fi
# We prefer wget than curl
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
# Set the RPM repository
/scripts/sbin/alcasar-rpm-download.sh
55,13 → 55,13
# For International install
MIRRORLIST2="http://mirrors.mageia.org/api/mageia.$VERSION.$ARCH.list"
try_nb="0"; nb_repository="0"
while [ "$nb_repository" != "4" ]
while [ "$nb_repository" != "2" ]
do
try_nb=`expr $try_nb + 1`
MIRRORLIST="MIRRORLIST$try_nb"
rpm_repository_sync
nb_repository=`cat /etc/urpmi/urpmi.cfg|grep mirrorlist|wc -l`
if [ "$nb_repository" != "4" ]
if [ "$nb_repository" != "2" ]
then
echo "Une erreur a été détectée lors de la synchronisation avec le dépot N°$try_nb."
echo "An error occurs when synchronising the repositories N°$try_nb"
136,6 → 136,6
urpmi --clean
mv rpms-$ARCH.tar.gz /root/
cd
echo "Your RPM archive : rpms-$ARCH.tar.gz"
echo "Your RPM archive file is /root/rpms-$ARCH.tar.gz"
exit 0