| Line 1... |
Line 1... |
| 1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
| 2 |
# $Id: alcasar.sh 958 2012-07-19 09:01:30Z franck $
|
2 |
# $Id: alcasar.sh 959 2012-07-26 12:49:22Z franck $
|
| 3 |
|
3 |
|
| 4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
| - |
|
5 |
|
| - |
|
6 |
# ALCASAR - Portail captif d'accès à l'Internet - Copyright (C) [2005] [ALcasar team - Rexy - 3abtux - ...]
|
| - |
|
7 |
# Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier au titre des clauses de la Licence Publique Générale GNU,
|
| - |
|
8 |
# elle que publiée par la Free Software Foundation ; soit la version 3 de la Licence.
|
| - |
|
9 |
# Ce programme est distribué dans l'espoir qu'il sera utile, mais SANS AUCUNE GARANTIE ;
|
| - |
|
10 |
# sans même une garantie implicite de COMMERCIABILITE ou DE CONFORMITE A UNE UTILISATION PARTICULIERE.
|
| - |
|
11 |
# Voir la Licence Publique Générale GNU pour plus de détails.
|
| - |
|
12 |
# Vous devriez avoir reçu un exemplaire de la Licence Publique Générale GNU avec ce programme ;
|
| - |
|
13 |
# si ce nest pas le cas, consultez : <http://www.gnu.org/licenses/>.
|
| - |
|
14 |
|
| - |
|
15 |
# @mail de la team d'ALCASAR
|
| - |
|
16 |
|
| 5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
17 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
| 6 |
# This script is distributed under the Gnu General Public License (GPL)
|
18 |
# This script is distributed under the Gnu General Public License (GPL)
|
| 7 |
|
19 |
|
| 8 |
# Script d'installation d'ALCASAR (Application Libre pour le Contrôle d'Accès Sécurisé et Authentifié au Réseau)
|
20 |
# Script d'installation d'ALCASAR (Application Libre pour le Contrôle d'Accès Sécurisé et Authentifié au Réseau)
|
| 9 |
# ALCASAR est architecturé autour d'une distribution Linux Mandriva minimaliste et les logiciels libres suivants :
|
21 |
# ALCASAR est architecturé autour d'une distribution Linux Mandriva minimaliste et les logiciels libres suivants :
|
| Line 62... |
Line 74... |
| 62 |
DEFAULT_PRIVATE_IP_MASK="192.168.182.1/24" # adresse d'ALCASAR (+masque) proposée par défaut sur le réseau de consultation
|
74 |
DEFAULT_PRIVATE_IP_MASK="192.168.182.1/24" # adresse d'ALCASAR (+masque) proposée par défaut sur le réseau de consultation
|
| 63 |
# ****** Paths - chemin des commandes *******
|
75 |
# ****** Paths - chemin des commandes *******
|
| 64 |
SED="/bin/sed -i"
|
76 |
SED="/bin/sed -i"
|
| 65 |
# ****************** End of global parameters *********************
|
77 |
# ****************** End of global parameters *********************
|
| 66 |
|
78 |
|
| - |
|
79 |
license ()
|
| - |
|
80 |
{
|
| - |
|
81 |
if [ $Lang == "fr" ]
|
| - |
|
82 |
then cat $DIR_INSTALL/gpl-3.0.fr.txt
|
| - |
|
83 |
else cat $DIR_INSTALL/gpl-3.0.txt
|
| - |
|
84 |
fi
|
| - |
|
85 |
read a
|
| - |
|
86 |
}
|
| - |
|
87 |
|
| 67 |
header_install ()
|
88 |
header_install ()
|
| 68 |
{
|
89 |
{
|
| 69 |
clear
|
90 |
clear
|
| 70 |
echo "-----------------------------------------------------------------------------"
|
91 |
echo "-----------------------------------------------------------------------------"
|
| 71 |
echo " ALCASAR V$VERSION Installation"
|
92 |
echo " ALCASAR V$VERSION Installation"
|
| Line 1686... |
Line 1707... |
| 1686 |
-\? | -h* | --h*)
|
1707 |
-\? | -h* | --h*)
|
| 1687 |
echo "$usage"
|
1708 |
echo "$usage"
|
| 1688 |
exit 0
|
1709 |
exit 0
|
| 1689 |
;;
|
1710 |
;;
|
| 1690 |
-i | --install)
|
1711 |
-i | --install)
|
| - |
|
1712 |
license
|
| 1691 |
header_install
|
1713 |
header_install
|
| 1692 |
testing
|
1714 |
testing
|
| 1693 |
# Test if ALCASAR is already installed
|
1715 |
# Test if ALCASAR is already installed
|
| 1694 |
if [ -e $DIR_WEB/VERSION ]
|
1716 |
if [ -e $DIR_WEB/VERSION ]
|
| 1695 |
then
|
1717 |
then
|