Subversion Repositories ALCASAR

Rev

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

Rev 1362 Rev 1363
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
 
2
 
3
# $Id: alcasar-bl.sh 1362 2014-05-26 17:12:54Z richard $
3
# $Id: alcasar-bl.sh 1363 2014-05-26 22:07:44Z 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 141... Line 141...
141
			chown -R apache:apache $DIR_tmp
141
			chown -R apache:apache $DIR_tmp
142
		fi
142
		fi
143
		;;		
143
		;;		
144
	# Adapt Toulouse BL to ALCASAR architecture (dnsmasq + DG + iptables)
144
	# Adapt Toulouse BL to ALCASAR architecture (dnsmasq + DG + iptables)
145
	-adapt | --adapt)
145
	-adapt | --adapt)
146
		echo -n "TMigration process of Toulouse BlackList. Please wait : "
146
		echo -n "Migration process of Toulouse BlackList. Please wait : "
147
		# Saving IP ossi category if exist else create it (ie : during the installaton process)
147
		# Saving IP ossi category if exist else create it (ie : during the installaton process)
148
		[ -e $DIR_IP_BL/ossi ]	&& mv -f $DIR_IP_BL/ossi $DIR_tmp/ossi-ip
148
		[ -e $DIR_IP_BL/ossi ]	&& mv -f $DIR_IP_BL/ossi $DIR_tmp/ossi-ip
149
		if [ -f $DIR_tmp/blacklists.tar.gz ]
149
		if [ -f $DIR_tmp/blacklists.tar.gz ]
150
		then
150
		then
151
			[ -d $DIR_DG_BL/ossi ] && mv -f $DIR_DG_BL/ossi $DIR_tmp
151
			[ -d $DIR_DG_BL/ossi ] && mv -f $DIR_DG_BL/ossi $DIR_tmp