861,16 → 861,14 |
ntpd -q -g & |
} # End of time_server () |
|
########################################################################################## |
## Fonction "init_db" ## |
## - Initialisation de la base Mysql ## |
## - Affectation du mot de passe de l'administrateur (root) ## |
## - Suppression des bases et des utilisateurs superflus ## |
## - Création de la base 'radius' ## |
## - Installation du schéma de cette base ## |
## - Import des tables de comptabilité (mtotacct, totacct) et info_usagers (userinfo) ## |
## ces table proviennent de 'dialupadmin' (paquetage freeradius-web) ## |
########################################################################################## |
##################################################################### |
## Function "init_db" ## |
## - Mysql initialization ## |
## - Set admin (root) password ## |
## - Remove unused users & databases ## |
## - Radius database creation ## |
## - Copy of accounting tables (mtotacct, totacct) & userinfo ## |
##################################################################### |
init_db () |
{ |
if [ `systemctl is-active mysqld` == "active" ] |
1028,7 → 1026,7 |
} # End freeradius () |
|
############################################################################# |
## Fonction "chilli" ## |
## Function "chilli" ## |
## - Creation of the conf file and init file (systemd) for coova-chilli ## |
## - Adapt the authentication web page (intercept.php) ## |
############################################################################# |
1224,10 → 1222,10 |
useradd -r -g chilli -s /bin/false -c "system user for coova-chilli" chilli |
} # End of chilli () |
|
################################################################## |
################################################################ |
## Function "e2guardian" ## |
## - Set the parameters of this HTML proxy (as controler) ## |
################################################################## |
## - Set the parameters of this HTML proxy (as controler) ## |
################################################################ |
e2guardian () |
{ |
mkdir -p /var/e2guardian /var/log/e2guardian |
1495,8 → 1493,8 |
} # End of nfsen () |
|
################################################## |
## Function "vnstat" ## |
## Initialization of Vnstat and vnstat phpFE ## |
## Function "vnstat" ## |
## - Initialization of Vnstat and vnstat phpFE ## |
################################################## |
vnstat () |
{ |
1508,9 → 1506,10 |
/usr/bin/vnstat -u -i $EXTIF |
} # End of vnstat |
|
################################################## |
## Function "dnsmasq" ## |
################################################## |
################################################################ |
## Function "dnsmasq" ## |
## - creation of the conf files of the 4 intances of dnsmasq ## |
################################################################ |
dnsmasq () |
{ |
[ -d /var/log/dnsmasq ] || mkdir /var/log/dnsmasq |
1617,9 → 1616,9 |
done |
} # End dnsmasq |
|
########################################################## |
## Fonction "BL" ## |
########################################################## |
####################################################### |
## Function "BL" ## |
####################################################### |
BL () |
{ |
# copy the Toulouse university BL in order to be adapted to ALCASAR architecture (alcasar-bl.sh -adapt) |
1677,8 → 1676,7 |
} # End BL() |
|
########################################################## |
## Fonction "cron" ## |
## - Mise en place des différents fichiers de cron ## |
## Function "cron" ## |
########################################################## |
cron () |
{ |
2138,7 → 2136,7 |
echo " Hit 'Enter' to continue" |
fi |
sleep 2 |
if [ "$mode" != "update" ] |
if [ "$mode" != "update" ] && [ "$DEBUG_ALCASAR" != "on" ] |
then |
read a |
fi |