Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 1675 2015-07-27 12:16:58Z richard $
|
2 |
# $Id: alcasar.sh 1676 2015-07-27 17:08:20Z 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 691... |
Line 691... |
691 |
$SED "s?^LoadModule imagemap_module.*?#LoadModule imagemap_module modules/mod_imagemap.so?g" /etc/httpd/conf/modules.d/00_base.conf
|
691 |
$SED "s?^LoadModule imagemap_module.*?#LoadModule imagemap_module modules/mod_imagemap.so?g" /etc/httpd/conf/modules.d/00_base.conf
|
692 |
$SED "s?^LoadModule rewrite_module.*?#LoadModule rewrite_module modules/mod_rewrite.so?g" /etc/httpd/conf/modules.d/00_base.conf
|
692 |
$SED "s?^LoadModule rewrite_module.*?#LoadModule rewrite_module modules/mod_rewrite.so?g" /etc/httpd/conf/modules.d/00_base.conf
|
693 |
$SED "s?^LoadModule speling_module.*?#LoadModule speling_module modules/mod_speling.so?g" /etc/httpd/conf/modules.d/00_base.conf
|
693 |
$SED "s?^LoadModule speling_module.*?#LoadModule speling_module modules/mod_speling.so?g" /etc/httpd/conf/modules.d/00_base.conf
|
694 |
[ -e /etc/httpd/conf/conf.d/ssl.conf.default ] || cp /etc/httpd/conf/conf.d/ssl.conf /etc/httpd/conf/conf.d/ssl.conf.default
|
694 |
[ -e /etc/httpd/conf/conf.d/ssl.conf.default ] || cp /etc/httpd/conf/conf.d/ssl.conf /etc/httpd/conf/conf.d/ssl.conf.default
|
695 |
$SED "s?^Listen.*?Listen $PRIVATE_IP:443?g" /etc/httpd/conf/conf.d/ssl.conf # Listen only on INTIF
|
695 |
$SED "s?^Listen.*?Listen $PRIVATE_IP:443?g" /etc/httpd/conf/conf.d/ssl.conf # Listen only on INTIF
|
696 |
$SED "s?^SSLCipherSuite.*SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!DSS?g" /etc/httpd/conf/conf.d/ssl.conf #DSS is no more secured
|
696 |
$SED "s?^SSLCipherSuite.*?SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!DSS?g" /etc/httpd/conf/conf.d/ssl.conf #DSS is no more secured
|
697 |
# Error page management
|
697 |
# Error page management
|
698 |
[ -e /etc/httpd/conf/conf.d/multilang-errordoc.conf.default ] || cp /etc/httpd/conf/conf.d/multilang-errordoc.conf /etc/httpd/conf/conf.d/multilang-errordoc.conf.default
|
698 |
[ -e /etc/httpd/conf/conf.d/multilang-errordoc.conf.default ] || cp /etc/httpd/conf/conf.d/multilang-errordoc.conf /etc/httpd/conf/conf.d/multilang-errordoc.conf.default
|
699 |
cat <<EOF > /etc/httpd/conf/conf.d/multilang-errordoc.conf
|
699 |
cat <<EOF > /etc/httpd/conf/conf.d/multilang-errordoc.conf
|
700 |
Alias /error/ "/var/www/html/"
|
700 |
Alias /error/ "/var/www/html/"
|
701 |
<Directory "/usr/share/httpd/error">
|
701 |
<Directory "/usr/share/httpd/error">
|
Line 731... |
Line 731... |
731 |
cat <<EOF > /usr/share/httpd/error/include/bottom.html
|
731 |
cat <<EOF > /usr/share/httpd/error/include/bottom.html
|
732 |
</body>
|
732 |
</body>
|
733 |
</html>
|
733 |
</html>
|
734 |
EOF
|
734 |
EOF
|
735 |
# Définition du premier compte lié au profil 'admin'
|
735 |
# Définition du premier compte lié au profil 'admin'
|
736 |
header_install
|
- |
|
737 |
if [ "$mode" = "install" ]
|
736 |
if [ "$mode" = "install" ]
|
738 |
then
|
737 |
then
|
- |
|
738 |
header_install
|
739 |
admin_portal=!
|
739 |
admin_portal=!
|
740 |
PTN='^[a-zA-Z0-9-]*$'
|
740 |
PTN='^[a-zA-Z0-9-]*$'
|
741 |
until [[ $(expr $admin_portal : $PTN) -gt 0 ]]
|
741 |
until [[ $(expr $admin_portal : $PTN) -gt 0 ]]
|
742 |
do
|
742 |
do
|
743 |
header_install
|
743 |
header_install
|