Subversion Repositories ALCASAR

Rev

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

Rev 2269 Rev 2272
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2269 2017-06-04 10:42:26Z richard $ 
2
#  $Id: alcasar.sh 2272 2017-06-04 19:03:43Z tom.houdayer $ 
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 846... Line 846...
846
	AuthName "ALCASAR Control Center (ACC)" 
846
	AuthName "ALCASAR Control Center (ACC)" 
847
	AuthDigestDomain $HOSTNAME.$DOMAIN
847
	AuthDigestDomain $HOSTNAME.$DOMAIN
848
	AuthUserFile $DIR_DEST_ETC/digest/key_backup
848
	AuthUserFile $DIR_DEST_ETC/digest/key_backup
849
	ErrorDocument 404 https://$HOSTNAME.$DOMAIN/
849
	ErrorDocument 404 https://$HOSTNAME.$DOMAIN/
850
</Directory>
850
</Directory>
851
<Directory $DIR_WEB/pass>
-
 
852
	SSLRequireSSL
-
 
853
	AllowOverride None
-
 
854
	Order deny,allow
-
 
855
	Deny from all
-
 
856
	Allow from 127.0.0.1
-
 
857
	Allow from $PRIVATE_NETWORK_MASK
-
 
858
	ErrorDocument 404 https://$HOSTNAME.$DOMAIN
-
 
859
</Directory>
-
 
860
EOF
851
EOF
861
# Replacement of the extension .cer by .der in MIME type
852
# Replacement of the extension .cer by .der in MIME type
862
$SED "s?^application/pkix-cert.*?application/pkix-cert		der?g" /etc/mime.types
853
$SED "s?^application/pkix-cert.*?application/pkix-cert		der?g" /etc/mime.types
863
# Launch after coova (in order to wait tun0 to be up)
854
# Launch after coova (in order to wait tun0 to be up)
864
$SED "s?^After=.*?After=network.target remote-fs.target nss-lookup.target chilli.service?g" /lib/systemd/system/httpd.service
855
$SED "s?^After=.*?After=network.target remote-fs.target nss-lookup.target chilli.service?g" /lib/systemd/system/httpd.service