Subversion Repositories ALCASAR

Rev

Rev 1009 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1009 Rev 1010
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 1009 2013-01-05 23:18:48Z richard $
2
# $Id: alcasar-urpmi.sh 1010 2013-01-06 14:06:16Z richard $
3
 
3
 
4
# alcasar-urpmi.sh
4
# alcasar-urpmi.sh
5
# by 3abtux and Rexy
5
# by 3abtux and Rexy
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 62... Line 62...
62
	then
62
	then
63
	echo "le système installé n'est pas reconnu"
63
	echo "le système installé n'est pas reconnu"
64
	echo "the installed operating system is unknown"
64
	echo "the installed operating system is unknown"
65
	exit 1
65
	exit 1
66
fi
66
fi
67
if [ "$DISTRIBUTION" == "Mandriva" ]
67
if [ "$DISTRIBUTION" == "Mandriva Linux" ]
68
then
68
then
69
	echo "La migration automatique du système ne peut être réalisée."
69
	echo "La migration automatique du système ne peut être réalisée."
70
	echo "Réalisez une mise à jour manuelle (cf. doc)."
70
	echo "Récupérez le fichier /tmp/alcasar-conf.tar.gz et faites une mise à jour manuelle (cf. readme.txt)."
71
	echo "The automatic system update can't perform."
71
	echo "The automatic system update can't perform."
72
	echo "Do a manual update (see doc)."
72
	echo "Retrieve the file /tmp/alcasar-conf.tar.gz and do a manual update (see readme.txt)."
-
 
73
	ls -l /tmp
73
	exit 1	
74
	exit 1
74
fi
75
fi
75
# We prefer wget than curl
76
# We prefer wget than curl
76
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
77
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
77
# Set the RPM repository
78
# Set the RPM repository
78
MIRROR_NBR=2
79
MIRROR_NBR=2