Subversion Repositories ALCASAR

Rev

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

Rev 2219 Rev 2220
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2219 2017-05-13 08:56:34Z richard $ 
2
#  $Id: alcasar.sh 2220 2017-05-13 09:27:16Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 2114... Line 2114...
2114
then
2114
then
2115
	echo "Lancez ce programme depuis le répertoire de l'archive d'ALCASAR"
2115
	echo "Lancez ce programme depuis le répertoire de l'archive d'ALCASAR"
2116
	echo "Launch this program from the ALCASAR archive directory"
2116
	echo "Launch this program from the ALCASAR archive directory"
2117
	exit 0
2117
	exit 0
2118
fi
2118
fi
-
 
2119
if [[ $EUID > 0 ]]
-
 
2120
then
-
 
2121
	echo "Vous devez être "root" pour installer ALCASAR (commande 'su')"
-
 
2122
	echo "You must be "root" to install ALCASAR ('su' command)"
-
 
2123
	exit 0
-
 
2124
fi
2119
VERSION=`cat $DIR_INSTALL/VERSION`
2125
VERSION=`cat $DIR_INSTALL/VERSION`
2120
usage="Usage: alcasar.sh {-i or --install} | {-u or --uninstall}"
2126
usage="Usage: alcasar.sh {-i or --install} | {-u or --uninstall}"
2121
nb_args=$#
2127
nb_args=$#
2122
args=$1
2128
args=$1
2123
if [ $nb_args -eq 0 ]
2129
if [ $nb_args -eq 0 ]