Subversion Repositories ALCASAR

Rev

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

Rev 1893 Rev 1898
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1893 2016-05-18 07:50:25Z richard $ 
2
#  $Id: alcasar.sh 1898 2016-05-18 16:33:55Z 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 613... Line 613...
613
# the script "$DIR_DEST_BIN/alcasar-iptables.sh" is launched at the end in order to allow update via ssh
613
# the script "$DIR_DEST_BIN/alcasar-iptables.sh" is launched at the end in order to allow update via ssh
614
} # End of network ()
614
} # End of network ()
615
 
615
 
616
##################################################################
616
##################################################################
617
##			Function "ACC"				##
617
##			Function "ACC"				##
618
## - installation du centre de gestion (ALCASAR Control Center)	##
618
## - installation of then ALCASAR Control Center (ACC)	)	##
619
## - configuration du serveur web (Apache)			##
619
## - configuration of the web server (Apache)			##
620
## - définition du 1er comptes de gestion 			##
620
## - creation of the first ACC admin account 			##
621
## - sécurisation des accès					##
621
## - secure the access						##
622
##################################################################
622
##################################################################
623
ACC ()
623
ACC ()
624
{
624
{
625
	[ -d $DIR_WEB ] && rm -rf $DIR_WEB
625
	[ -d $DIR_WEB ] && rm -rf $DIR_WEB
626
	mkdir $DIR_WEB
626
	mkdir $DIR_WEB
Line 854... Line 854...
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
## - Creating of CA and server certificate (apache		 	##
859
## - Creating the CA and the 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`