Subversion Repositories ALCASAR

Rev

Rev 1358 | Rev 1361 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1358 Rev 1359
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1358 2014-05-23 12:26:25Z richard $ 
2
#  $Id: alcasar.sh 1359 2014-05-23 16:15:57Z 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 539... Line 539...
539
	$SED "s?^LoadModule autoindex_module.*?#LoadModule autoindex_module modules/mod_autoindex.so?g" /etc/httpd/conf/httpd.conf
539
	$SED "s?^LoadModule autoindex_module.*?#LoadModule autoindex_module modules/mod_autoindex.so?g" /etc/httpd/conf/httpd.conf
540
	$SED "s?^LoadModule info_module.*?#LoadModule info_module modules/mod_info.so?g" /etc/httpd/conf/httpd.conf
540
	$SED "s?^LoadModule info_module.*?#LoadModule info_module modules/mod_info.so?g" /etc/httpd/conf/httpd.conf
541
	$SED "s?^LoadModule imagemap_module.*?#LoadModule imagemap_module modules/mod_imagemap.so?g" /etc/httpd/conf/httpd.conf
541
	$SED "s?^LoadModule imagemap_module.*?#LoadModule imagemap_module modules/mod_imagemap.so?g" /etc/httpd/conf/httpd.conf
542
	$SED "s?^LoadModule rewrite_module.*?#LoadModule rewrite_module modules/mod_rewrite.so?g" /etc/httpd/conf/httpd.conf
542
	$SED "s?^LoadModule rewrite_module.*?#LoadModule rewrite_module modules/mod_rewrite.so?g" /etc/httpd/conf/httpd.conf
543
	$SED "s?LoadModule speling_module.*?LoadModule speling_module modules/mod_speling.so?g" /etc/httpd/conf/httpd.conf
543
	$SED "s?LoadModule speling_module.*?LoadModule speling_module modules/mod_speling.so?g" /etc/httpd/conf/httpd.conf
544
	FIC_MOD_SSL=`find /etc/httpd/modules.d/ -type f -name *mod_ssl.conf`
544
	[ -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
545
	$SED "s?^Listen.*?Listen $PRIVATE_IP:443?g" $FIC_MOD_SSL # On écoute en SSL que sur INTIF
545
	$SED "s?^Listen.*?Listen $PRIVATE_IP:443?g" /etc/httpd/conf/conf.d/ssl.conf # Listen only on INTIF
-
 
546
	[ -e /usr/share/httpd/error/include/top.html.default ] || cp /usr/share/httpd/error/include/top.html /usr/share/httpd/error/include/top.html.default
546
	$SED "s?background-color.*?background-color: #EFEFEF; }?g" /var/www/error/include/top.html
547
	$SED "s?background-color.*?background-color: #EFEFEF; }?g" /usr/share/httpd/error/include/top.html
547
	[ -e /var/www/error/include/bottom.html.default ] || mv /var/www/error/include/bottom.html /var/www/error/include/bottom.html.default
548
	[ -e /usr/share/httpd/error/include/bottom.html.default ] || cp /usr/share/httpd/error/include/bottom.html /usr/share/httpd/error/include/bottom.html.default
548
	cat <<EOF > /var/www/error/include/bottom.html
549
	cat <<EOF > /usr/share/httpd/error/include/bottom.html
549
</body>
550
</body>
550
</html>
551
</html>
551
EOF
552
EOF
552
# Définition du premier compte lié au profil 'admin'
553
# Définition du premier compte lié au profil 'admin'
553
	header_install
554
	header_install
Line 1093... Line 1094...
1093
## - Ulog config for multi-log files 						##
1094
## - Ulog config for multi-log files 						##
1094
##################################################################################
1095
##################################################################################
1095
param_ulogd ()
1096
param_ulogd ()
1096
{
1097
{
1097
# Three instances of ulogd (three different logfiles)
1098
# Three instances of ulogd (three different logfiles)
-
 
1099
	cp -f /lib/systemd/system/ulogd.service /lib/systemd/system/ulogd-ssh.service
1098
	cp -f /lib/systemd/system/ulogd.service /lib/systemd/system/ulogd-ssh.service /lib/systemd/system/ulogd-ext-access.service
1100
	cp -f /lib/systemd/system/ulogd.service /lib/systemd/system/ulogd-ext-access.service
1099
	mv /lib/systemd/system/ulogd.service /lib/systemd/system/ulogd-traceability.service
1101
	mv /lib/systemd/system/ulogd.service /lib/systemd/system/ulogd-traceability.service
1100
	[ -d /var/log/firewall ] || mkdir -p /var/log/firewall
1102
	[ -d /var/log/firewall ] || mkdir -p /var/log/firewall
1101
	nl=1
1103
	nl=1
1102
	for log_type in traceability ssh ext-access
1104
	for log_type in traceability ssh ext-access
1103
	do
1105
	do