Subversion Repositories ALCASAR

Rev

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

Rev 1912 Rev 1913
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1912 2016-05-29 13:18:17Z richard $ 
2
#  $Id: alcasar.sh 1913 2016-05-29 14:44:38Z 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 1621... Line 1621...
1621
# Add Bing to the safesearch url regext list (parental control)
1621
# Add Bing to the safesearch url regext list (parental control)
1622
	cat <<EOF >> $DIR_DG/lists/urlregexplist
1622
	cat <<EOF >> $DIR_DG/lists/urlregexplist
1623
# Bing - add 'adlt=strict'
1623
# Bing - add 'adlt=strict'
1624
#"(^http://[0-9a-z]+\.bing\.[a-z]+[-/%.0-9a-z]*\?)(.*)"->"\1\2&adlt=strict"
1624
#"(^http://[0-9a-z]+\.bing\.[a-z]+[-/%.0-9a-z]*\?)(.*)"->"\1\2&adlt=strict"
1625
EOF
1625
EOF
1626
# change the the google safesearch ("safe=strict" instead of "safe=vss")
1626
# change the google safesearch ("safe=strict" instead of "safe=vss")
1627
	$SED "s?safe=vss?safe=strict?g" $DIR_DG/lists/urlregexplist
1627
	$SED "s?safe=vss?safe=strict?g" $DIR_DG/lists/urlregexplist
1628
# adapt the Toulouse BL to ALCASAR architecture. Enable the default categories
1628
# adapt the Toulouse BL to ALCASAR architecture
1629
	if [ "$mode" != "update" ]; then
1629
	if [ "$mode" != "update" ]; then
1630
		$DIR_DEST_BIN/alcasar-bl.sh --adapt
1630
		$DIR_DEST_BIN/alcasar-bl.sh --adapt
-
 
1631
# enable the default categories
1631
		$DIR_DEST_BIN/alcasar-bl.sh --cat_choice
1632
		$DIR_DEST_BIN/alcasar-bl.sh --cat_choice
1632
# creation of the custom BL and WL categorie named "ossi" (for domain names & ip only)
1633
# creation of the custom BL and WL categorie named "ossi" (for domain names & ip only)
1633
		touch $DIR_DEST_SHARE/dnsmasq-bl/ossi.conf
1634
		touch $DIR_DEST_SHARE/dnsmasq-bl/ossi.conf
1634
		touch $DIR_DEST_SHARE/dnsmasq-wl/ossi.conf
1635
		touch $DIR_DEST_SHARE/dnsmasq-wl/ossi.conf
1635
		touch $DIR_DEST_SHARE/iptables-bl/ossi
1636
		touch $DIR_DEST_SHARE/iptables-bl/ossi