Subversion Repositories ALCASAR

Rev

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

Rev 1525 Rev 1527
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1525 2014-12-21 10:50:00Z franck $ 
2
#  $Id: alcasar.sh 1527 2014-12-21 11:00:21Z franck $ 
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 775... Line 775...
775
#	Allow from AA.BB.CC.DD/32	# Allow from specific @IP
775
#	Allow from AA.BB.CC.DD/32	# Allow from specific @IP
776
	require valid-user
776
	require valid-user
777
	AuthType digest
777
	AuthType digest
778
	AuthName $HOSTNAME.$DOMAIN
778
	AuthName $HOSTNAME.$DOMAIN
779
	AuthUserFile $DIR_DEST_ETC/digest/key_backup
779
	AuthUserFile $DIR_DEST_ETC/digest/key_backup
-
 
780
	ErrorDocument 404 https://$HOSTNAME.$DOMAIN/
-
 
781
</Directory>
-
 
782
<Directory $DIR_ACC/stats>
-
 
783
	SSLRequireSSL
-
 
784
	AllowOverride None
-
 
785
	Order deny,allow
-
 
786
	Deny from all
-
 
787
	Allow from 127.0.0.1
-
 
788
	Allow from $PRIVATE_NETWORK_MASK
-
 
789
#	Allow from AA.BB.CC.DD/32	# Allow from specific @IP
-
 
790
	require valid-user
-
 
791
	AuthType digest
-
 
792
	AuthName $HOSTNAME.$DOMAIN
-
 
793
	BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
-
 
794
	AuthUserFile $DIR_DEST_ETC/digest/key_manager
780
	ErrorDocument 404 https://$HOSTNAME.$DOMAIN/
795
	ErrorDocument 404 https://$HOSTNAME.$DOMAIN/
781
</Directory>
796
</Directory>
782
EOF
797
EOF
783
# Launch after coova
798
# Launch after coova
784
$SED "s?^After=.*?After=network.target remote-fs.target nss-lookup.target chilli.service?g" /lib/systemd/system/httpd.service
799
$SED "s?^After=.*?After=network.target remote-fs.target nss-lookup.target chilli.service?g" /lib/systemd/system/httpd.service
Line 817... Line 832...
817
ErrorDocument 503 /error/error.php?error=503
832
ErrorDocument 503 /error/error.php?error=503
818
ErrorDocument 506 /error/error.php?error=506
833
ErrorDocument 506 /error/error.php?error=506
819
EOF
834
EOF
820
 
835
 
821
# Initialization of Vnstat
836
# Initialization of Vnstat
-
 
837
	 [ -e /etc/vnstat.conf.default ]  || cp $FIC_VIRTUAL_SSL /etc/vnstat.conf.default
-
 
838
	 $SED "s?Interface.*?Interface \"$EXTIF\"?g" /etc/vnstat.conf
822
	/usr/bin/vnstat -u -i eth0
839
	/usr/bin/vnstat -u -i $EXTIF
823
 
840
 
824
} # End of ACC ()
841
} # End of ACC ()
825
 
842
 
826
##########################################################################################
843
##########################################################################################
827
##				Fonction "CA"						##
844
##				Fonction "CA"						##