Subversion Repositories ALCASAR

Rev

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

Rev 1382 Rev 1383
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1382 2014-06-11 17:25:20Z richard $ 
2
#  $Id: alcasar.sh 1383 2014-06-11 22:30:51Z 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 1392... Line 1392...
1392
##########################################################
1392
##########################################################
1393
##		Fonction "BL"				##
1393
##		Fonction "BL"				##
1394
##########################################################
1394
##########################################################
1395
BL ()
1395
BL ()
1396
{
1396
{
1397
# on copie par défaut la BL de toulouse embarqués dans l'archive d'ALCASAR
1397
# copy and extract of Toulouse BL
1398
	rm -rf $DIR_DG/lists/blacklists
1398
	rm -rf $DIR_DG/lists/blacklists
1399
	tar zxf $DIR_CONF/blacklists.tar.gz --directory=$DIR_DG/lists/ > /dev/null 2>&1
1399
	tar zxf $DIR_CONF/blacklists.tar.gz --directory=$DIR_DG/lists/ > /dev/null 2>&1
1400
# on crée le répertoire ossi (noms de domaine et URLs ajoutés à la BL)
1400
# creation of the OSSI BL and WL categories (domain name and url)
1401
	mkdir $DIR_DG/lists/blacklists/ossi
1401
	mkdir $DIR_DG/lists/blacklists/ossi
1402
	touch $DIR_DG/lists/blacklists/ossi/domains $DIR_DG/lists/blacklists/ossi/domains_wl
1402
	touch $DIR_DG/lists/blacklists/ossi/domains $DIR_DG/lists/blacklists/ossi/domains_wl
1403
	touch $DIR_DG/lists/blacklists/ossi/urls $DIR_DG/lists/blacklists/ossi/urls_wl
1403
	touch $DIR_DG/lists/blacklists/ossi/urls $DIR_DG/lists/blacklists/ossi/urls_wl
1404
# On crée les fichiers vides de sites ou d'URL réhabilités
1404
# creation of file for the rehabilited domains and urls
1405
	[ -e $DIR_DG/lists/exceptionsitelist.default ] || mv $DIR_DG/lists/exceptionsitelist $DIR_DG/lists/exceptionsitelist.default
1405
	[ -e $DIR_DG/lists/exceptionsitelist.default ] || mv $DIR_DG/lists/exceptionsitelist $DIR_DG/lists/exceptionsitelist.default
1406
	[ -e $DIR_DG/lists/exceptionurllist.default ] || mv $DIR_DG/lists/exceptionurllist $DIR_DG/lists/exceptionurllist.default
1406
	[ -e $DIR_DG/lists/exceptionurllist.default ] || mv $DIR_DG/lists/exceptionurllist $DIR_DG/lists/exceptionurllist.default
1407
	touch $DIR_DG/lists/exceptionsitelist
1407
	touch $DIR_DG/lists/exceptionsitelist
1408
	touch $DIR_DG/lists/exceptionurllist
1408
	touch $DIR_DG/lists/exceptionurllist
1409
# On crée la configuration de base du filtrage de domaine et d'URL pour Dansguardian
1409
# On crée la configuration de base du filtrage de domaine et d'URL pour Dansguardian