Subversion Repositories ALCASAR

Rev

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

Rev 878 Rev 885
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-bl.sh 878 2012-06-03 16:07:40Z richard $
2
# $Id: alcasar-bl.sh 885 2012-06-11 21:33:50Z richard $
3
 
3
 
4
# alcasar-bl.sh
4
# alcasar-bl.sh
5
# by Franck BOUIJOUX and Richard REY
5
# by Franck BOUIJOUX 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 102... Line 102...
102
		then
102
		then
103
			echo "Erreur : le serveur de blacklist ($BL_SERVER) n'est pas joignable"
103
			echo "Erreur : le serveur de blacklist ($BL_SERVER) n'est pas joignable"
104
		else 
104
		else 
105
			rm -rf /tmp/con_ok.html $DIR_tmp
105
			rm -rf /tmp/con_ok.html $DIR_tmp
106
			mkdir $DIR_tmp
106
			mkdir $DIR_tmp
107
			cd $DIR_tmp
-
 
108
			wget http://$BL_SERVER/blacklists/download/blacklists.tar.gz
107
			wget -P $DIR_tmp http://$BL_SERVER/blacklists/download/blacklists.tar.gz
109
			md5sum $DIR_tmp/blacklists.tar.gz | cut -d" " -f1 > $DIR_tmp/md5sum
108
			md5sum $DIR_tmp/blacklists.tar.gz | cut -d" " -f1 > $DIR_tmp/md5sum
110
			cd /root
109
			chown -R apache:apache $DIR_tmp
111
		fi
110
		fi
112
		;;		
111
		;;		
113
	# Adaptation de la BL de Toulouse à notre structure (dnsmasq + DG)
112
	# Adaptation de la BL de Toulouse à notre structure (dnsmasq + DG)
114
	-adapt | --adapt)
113
	-adapt | --adapt)
115
		if [ -f $DIR_tmp/blacklists.tar.gz ]
114
		if [ -f $DIR_tmp/blacklists.tar.gz ]