Subversion Repositories ALCASAR

Rev

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

Rev 1008 Rev 1009
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 1008 2013-01-05 23:13:33Z richard $
2
# $Id: alcasar-urpmi.sh 1009 2013-01-05 23:18:48Z 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 64... Line 64...
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" ]
68
then
68
then
69
	if [ $CURRENT_VERSION != "2009.0" ] && [ $CURRENT_VERSION != "2009.1" ] && [ $CURRENT_VERSION != "2010.0" ] && [ $CURRENT_VERSION != "2010.1" ] && [ $CURRENT_VERSION != "2010.2" ] 
-
 
70
	then
-
 
71
	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."
72
	echo "Réalisez une mise à jour manuelle (cf. doc)."
70
	echo "Réalisez une mise à jour manuelle (cf. doc)."
73
	echo "The automatic system update can't perform."
71
	echo "The automatic system update can't perform."
74
	echo "Do a manual update (see doc)."
72
	echo "Do a manual update (see doc)."
75
	exit 1	
73
	exit 1	
76
	fi
-
 
77
fi
74
fi
78
# We prefer wget than curl
75
# We prefer wget than curl
79
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
76
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
80
# Set the RPM repository
77
# Set the RPM repository
81
MIRROR_NBR=2
78
MIRROR_NBR=2