Subversion Repositories ALCASAR

Rev

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

Rev 1933 Rev 1936
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
 
2
 
3
# $Id: alcasar-bl.sh 1933 2016-06-10 08:50:46Z richard $
3
# $Id: alcasar-bl.sh 1936 2016-06-11 16:32:37Z richard $
4
 
4
 
5
# alcasar-bl.sh
5
# alcasar-bl.sh
6
# by Franck BOUIJOUX and Richard REY
6
# by Franck BOUIJOUX and Richard REY
7
# This script is distributed under the Gnu General Public License (GPL)
7
# This script is distributed under the Gnu General Public License (GPL)
8
 
8
 
Line 147... Line 147...
147
			done
147
			done
148
			rm -rf $DIR_DG_BL $DIR_IP_BL
148
			rm -rf $DIR_DG_BL $DIR_IP_BL
149
			mkdir $DIR_DG_BL $DIR_IP_BL
149
			mkdir $DIR_DG_BL $DIR_IP_BL
150
			tar zxf $DIR_tmp/blacklists.tar.gz --directory=$DIR_DG/
150
			tar zxf $DIR_tmp/blacklists.tar.gz --directory=$DIR_DG/
151
			# Add the two local categories (ossi-bl & ossi-wl) to the usage file
151
			# Add the two local categories (ossi-bl & ossi-wl) to the usage file
-
 
152
			# Add the custom categories (ossi-tor_nodes) to the usage file
152
			cat << EOF >> $DIR_DG_BL/global_usage 
153
			cat << EOF >> $DIR_DG_BL/global_usage 
153
 
154
 
154
NAME: ossi-bl
155
NAME: ossi-bl
155
DEFAULT_TYPE: black
156
DEFAULT_TYPE: black
156
SOURCE: ALCASAR Team
157
SOURCE: ALCASAR Team
157
DESC FR: sites blacklistés ajoutés localement
158
DESC FR: sites blacklistés ajoutés localement
158
NAME RU: ossi-bl
-
 
159
NAME EN: blacklisted sites add locally
159
DESC EN: blacklisted sites add locally
160
NAME FR: ossi-bl
160
NAME FR: ossi-bl
161
NAME IT: ossi-bl
-
 
162
NAME NL: ossi-bl
-
 
163
NAME DE: ossi-bl
-
 
164
NAME ES: ossi-bl
161
NAME EN: ossi-bl
165
 
162
 
166
NAME: ossi-wl
163
NAME: ossi-wl
167
DEFAULT_TYPE: white
164
DEFAULT_TYPE: white
168
SOURCE: ALCASAR Team
165
SOURCE: ALCASAR Team
169
DESC FR: sites autorisés ajoutés localement
166
DESC FR: sites autorisés ajoutés localement
170
NAME RU: ossi-wl
-
 
171
NAME EN: whitelisted sites add locally
167
DESC EN: whitelisted sites add locally
172
NAME FR: ossi-wl
168
NAME FR: ossi-wl
173
NAME IT: ossi-wl
169
NAME EN: ossi-wl
-
 
170
 
174
NAME NL: ossi-wl
171
NAME: ossi-tor_nodes
-
 
172
DEFAULT_TYPE: black
-
 
173
SOURCE: ALCASAR Team
-
 
174
DESC FR: Adresses IP des noeuds (routeurs) d'entrée du réseau TOR
-
 
175
DESC EN:IP addresses of input TOR nodes (routers)
175
NAME DE: ossi-wl
176
NAME FR: Noeuds TOR
176
NAME ES: ossi-wl
177
NAME EN: TOR nodes
177
EOF
178
EOF
178
			# Retrieve custom files (ossi)
179
			# Retrieve custom files (ossi)
179
			for x in $(ls -1 $DIR_tmp | grep "^ossi-*")
180
			for x in $(ls -1 $DIR_tmp | grep "^ossi-*")
180
			do
181
			do
181
				mv $DIR_tmp/$x $DIR_DG_BL
182
				mv $DIR_tmp/$x $DIR_DG_BL