Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 672 2011-07-08 15:34:22Z richard $
|
2 |
# $Id: alcasar.sh 673 2011-07-11 20:26:36Z richard $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
7 |
|
7 |
|
Line 1126... |
Line 1126... |
1126 |
mkdir $DIR_DG/lists/blacklists/ossi $DIR_DG/lists/blacklists/ip
|
1126 |
mkdir $DIR_DG/lists/blacklists/ossi $DIR_DG/lists/blacklists/ip
|
1127 |
touch $DIR_DG/lists/blacklists/ossi/domains $DIR_DG/lists/blacklists/ip/domains
|
1127 |
touch $DIR_DG/lists/blacklists/ossi/domains $DIR_DG/lists/blacklists/ip/domains
|
1128 |
touch $DIR_DG/lists/blacklists/ossi/urls $DIR_DG/lists/blacklists/ip/urls
|
1128 |
touch $DIR_DG/lists/blacklists/ossi/urls $DIR_DG/lists/blacklists/ip/urls
|
1129 |
# On crée les fichiers vides de sites ou d'URL réhabilités
|
1129 |
# On crée les fichiers vides de sites ou d'URL réhabilités
|
1130 |
[ -e $DIR_DG/lists/exceptionsitelist.default ] || mv $DIR_DG/lists/exceptionsitelist $DIR_DG/lists/exceptionsitelist.default
|
1130 |
[ -e $DIR_DG/lists/exceptionsitelist.default ] || mv $DIR_DG/lists/exceptionsitelist $DIR_DG/lists/exceptionsitelist.default
|
1131 |
[ -e $DIR_DG/lists/exceptionurllist.default ] || mv $DIR_DG/lists/exceptionurllist $DIr_DG/lists/exceptionurllist.default
|
1131 |
[ -e $DIR_DG/lists/exceptionurllist.default ] || mv $DIR_DG/lists/exceptionurllist $DIR_DG/lists/exceptionurllist.default
|
1132 |
touch $DIR_DG/lists/exceptionsitelist
|
1132 |
touch $DIR_DG/lists/exceptionsitelist
|
1133 |
touch $DIR_DG/lists/exceptionurllist
|
1133 |
touch $DIR_DG/lists/exceptionurllist
|
1134 |
# On crée la configuration de base du filtrage de domaine et d'URL pour Dansguardian
|
1134 |
# On crée la configuration de base du filtrage de domaine et d'URL pour Dansguardian
|
1135 |
cat <<EOF > $DIR_DG/lists/bannedurllist
|
1135 |
cat <<EOF > $DIR_DG/lists/bannedurllist
|
1136 |
# Dansguardian filter config for ALCASAR
|
1136 |
# Dansguardian filter config for ALCASAR
|