Subversion Repositories ALCASAR

Rev

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

Rev 60 Rev 65
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#  $Id: alcasar.sh 60 2010-04-07 21:08:15Z richard $ 
2
#  $Id: alcasar.sh 65 2010-04-08 21:32:15Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
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 1219... Line 1219...
1219
# On crée le fichier de conf de la version actuelle
1219
# On crée le fichier de conf de la version actuelle
1220
				chmod u+x $DIR_SCRIPTS/alcasar-conf.sh
1220
				chmod u+x $DIR_SCRIPTS/alcasar-conf.sh
1221
				$DIR_SCRIPTS/alcasar-conf.sh -create
1221
				$DIR_SCRIPTS/alcasar-conf.sh -create
1222
			fi
1222
			fi
1223
# On désinstalle la version actuelle
1223
# On désinstalle la version actuelle
1224
		$DIR_DEST_SBIN/alcasar-uninstall.sh
1224
		$DIR_SCRIPTS/sbin/alcasar-uninstall.sh
1225
		fi
1225
		fi
1226
# On teste la version du système
1226
# On teste la version du système
1227
		fic=`cat /etc/product.id`
1227
		fic=`cat /etc/product.id`
1228
		old="$IFS"
1228
		old="$IFS"
1229
		IFS=","
1229
		IFS=","
Line 1275... Line 1275...
1275
		if [ "$reponse" = "o" ] || [ "$reponse" = "O" ]
1275
		if [ "$reponse" = "o" ] || [ "$reponse" = "O" ]
1276
		then
1276
		then
1277
			$DIR_SCRIPT/alcasar-conf.sh -create
1277
			$DIR_SCRIPT/alcasar-conf.sh -create
1278
		fi
1278
		fi
1279
# On désinstalle la version actuelle
1279
# On désinstalle la version actuelle
1280
		$DIR_DEST_SBIN/alcasar-uninstall.sh
1280
		$DIR_SCRIPTS/sbin/alcasar-uninstall.sh
1281
		;;
1281
		;;
1282
	*)
1282
	*)
1283
		echo "Argument inconnu :$1";
1283
		echo "Argument inconnu :$1";
1284
		echo "$usage"
1284
		echo "$usage"
1285
		exit 1
1285
		exit 1