Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2759 → Rev 2760

/alcasar.sh
93,8 → 93,8
cat $DIR_INSTALL/gpl-warning.txt | more
fi
response=0
PTN='^[oOyYnN]$'
until [[ $(expr $response : $PTN) -gt 0 ]]
PTN='^[oOyYnN]?$'
until [[ "$response" =~ $PTN ]]
do
if [ $Lang == "fr" ]
then echo -n "Acceptez-vous les termes de cette licence (O/n)? : "
201,7 → 201,7
fi
response=0
PTN='^[12]$'
until [[ $(expr $response : $PTN) -gt 0 ]]
until [[ "$response" =~ $PTN ]]
do
if [ $Lang == "fr" ]
then echo -n "Tapez '1' pour une mise à jour; Tapez '2' pour une réinstallation : "
430,7 → 430,7
header_install
ORGANISME=!
PTN='^[a-zA-Z0-9-]*$'
until [[ $(expr $ORGANISME : $PTN) -gt 0 ]]
until [[ "$ORGANISME" =~ $PTN ]]
do
if [ $Lang == "fr" ]
then echo -n "Entrez le nom de votre organisme : "
511,8 → 511,8
else echo "The default ALCASAR IP address on consultation network is : $DEFAULT_PRIVATE_IP_MASK"
fi
response=0
PTN='^[oOyYnN]$'
until [[ $(expr $response : $PTN) -gt 0 ]]
PTN='^[oOyYnN]?$'
until [[ "$response" =~ $PTN ]]
do
if [ $Lang == "fr" ]
then echo -n "Voulez-vous utiliser cette adresse et ce plan d'adressage (recommandé) (O/n)? : "
524,7 → 524,7
then
PRIVATE_IP_MASK="0"
PTN='^\([01]\?[[:digit:]][[:digit:]]\?\|2[0-4][[:digit:]]\|25[0-5]\).\([01]\?[[:digit:]][[:digit:]]\?\|2[0-4][[:digit:]]\|25[0-5]\).\([01]\?[[:digit:]][[:digit:]]\?\|2[0-4][[:digit:]]\|25[0-5]\).\([01]\?[[:digit:]][[:digit:]]\?\|2[0-4][[:digit:]]\|25[0-5]\)/[012]\?[[:digit:]]$'
until [[ $(expr $PRIVATE_IP_MASK : $PTN) -gt 0 ]]
until [[ $(expr "$PRIVATE_IP_MASK" : $PTN) -gt 0 ]]
do
if [ $Lang == "fr" ]
then echo -n "Entrez l'adresse IP d'ALCASAR au format CIDR (a.b.c.d/xx) : "
547,8 → 547,8
else echo "The default ALCASAR hostname is : $HOSTNAME.$DOMAIN"
fi
response=0
PTN='^[oOyYnN]$'
until [[ $(expr $response : $PTN) -gt 0 ]]
PTN='^[oOyYnN]?$'
until [[ "$response" =~ $PTN ]]
do
if [ $Lang == "fr" ]
then echo -n "Voulez-vous utiliser ce nom d'hôte (recommandé) (O/n)? : "
891,8 → 891,8
mkdir -p $DIR_DEST_ETC/digest
chmod 755 $DIR_DEST_ETC/digest
if [ $Lang == "fr" ]
then echo -n "Création du premier compte administrateur : "
else echo -n "Creation of the first admin account : "
then echo "Création du premier compte administrateur : "
else echo "Creation of the first admin account : "
fi
until [ -s $DIR_DEST_ETC/digest/key_admin ]
do
2449,8 → 2449,8
else echo "The configuration file of an old version has been found";
fi
response=0
PTN='^[oOnNyY]$'
until [[ $(expr $response : $PTN) -gt 0 ]]
PTN='^[oOnNyY]?$'
until [[ "$response" =~ $PTN ]]
do
if [ $Lang == "fr" ]
then echo -n "Voulez-vous l'utiliser (O/n)? ";
2498,11 → 2498,11
exit 0
fi
response=0
PTN='^[oOnN]$'
until [[ $(expr $response : $PTN) -gt 0 ]]
PTN='^[oOyYnN]?$'
until [[ "$response" =~ $PTN ]]
do
if [ $Lang == "fr" ]
then echo -n "Voulez-vous créer le fichier de configuration de la version actuelle (0/n)? ";
then echo -n "Voulez-vous créer le fichier de configuration de la version actuelle (O/n)? ";
else echo -n "Do you want to create the running version configuration file (Y/n)? ";
fi
read response