Subversion Repositories ALCASAR

Rev

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

Rev 1010 Rev 1012
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 1010 2013-01-06 14:06:16Z richard $
2
# $Id: alcasar-urpmi.sh 1012 2013-01-20 22:33:33Z 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 56... Line 56...
56
		ARCH=`echo $i|cut -d"=" -f2`
56
		ARCH=`echo $i|cut -d"=" -f2`
57
		unknown_os=`expr $unknown_os + 1`
57
		unknown_os=`expr $unknown_os + 1`
58
	fi
58
	fi
59
done
59
done
60
IFS="$old"
60
IFS="$old"
61
if [ $unknown_os != 3 ]
61
if [[ ( $unknown_os != 3 || "$DISTRIBUTION" != "Mageia" ) && ( "$CURRENT_VERSION" != "2" ) ]]
62
	then
62
	then
63
	echo "le système installé n'est pas reconnu"
63
	echo "le système Linux installé n'est pas conforme. Installez Mageia2 (cf documentation d'installation)"
64
	echo "the installed operating system is unknown"
64
	echo "the installed Linux operating system isn't conform. Install Mageia2 (see installation documentation)"
65
	exit 1
-
 
66
fi
-
 
67
if [ "$DISTRIBUTION" == "Mandriva Linux" ]
65
	if [ -e /tmp/alcasar-conf.tar.gz ]
68
then
66
		then
-
 
67
		echo
69
	echo "La migration automatique du système ne peut être réalisée."
68
		echo "La migration automatique du système ne peut pas être réalisée."
70
	echo "Récupérez le fichier /tmp/alcasar-conf.tar.gz et faites une mise à jour manuelle (cf. readme.txt)."
69
		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."
70
		echo "The automatic system update can't perform."
72
	echo "Retrieve the file /tmp/alcasar-conf.tar.gz and do a manual update (see readme.txt)."
71
		echo "Retrieve the file /tmp/alcasar-conf.tar.gz and do a manual update (see readme.txt)."
73
	ls -l /tmp
72
	fi
74
	exit 1
73
	exit 1
75
fi
74
fi
76
# We prefer wget than curl
75
# We prefer wget than curl
77
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
76
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
78
# Set the RPM repository
77
# Set the RPM repository