Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 1877 2016-05-06 17:02:20Z raphael.pion $
|
2 |
# $Id: alcasar.sh 1893 2016-05-18 07:50:25Z 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 852... |
Line 852... |
852 |
EOF
|
852 |
EOF
|
853 |
# Launch after coova (in order to wait tun0 to be up)
|
853 |
# Launch after coova (in order to wait tun0 to be up)
|
854 |
$SED "s?^After=.*?After=network.target remote-fs.target nss-lookup.target chilli.service?g" /lib/systemd/system/httpd.service
|
854 |
$SED "s?^After=.*?After=network.target remote-fs.target nss-lookup.target chilli.service?g" /lib/systemd/system/httpd.service
|
855 |
} # End of ACC ()
|
855 |
} # End of ACC ()
|
856 |
|
856 |
|
857 |
##########################################################################################
|
857 |
##########################################################################
|
858 |
## Fonction "CA" ##
|
858 |
## Fonction "CA" ##
|
859 |
## - Création d'une Autorité de Certification et du certificat serveur pour apache ##
|
859 |
## - Creating of CA and server certificate (apache ##
|
860 |
##########################################################################################
|
860 |
##########################################################################
|
861 |
CA ()
|
861 |
CA ()
|
862 |
{
|
862 |
{
|
863 |
$DIR_DEST_BIN/alcasar-CA.sh
|
863 |
$DIR_DEST_BIN/alcasar-CA.sh
|
864 |
FIC_VIRTUAL_SSL=`find /etc/httpd/conf -type f -name *default_ssl_vhost.conf`
|
864 |
FIC_VIRTUAL_SSL=`find /etc/httpd/conf -type f -name *default_ssl_vhost.conf`
|
865 |
[ -e /etc/httpd/conf/vhosts-ssl.default ] || cp $FIC_VIRTUAL_SSL /etc/httpd/conf/vhosts-ssl.default
|
865 |
[ -e /etc/httpd/conf/vhosts-ssl.default ] || cp $FIC_VIRTUAL_SSL /etc/httpd/conf/vhosts-ssl.default
|