Subversion Repositories ALCASAR

Rev

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

Rev 2434 Rev 2441
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
 
2
 
3
# $Id: alcasar-bl.sh 2434 2017-11-06 16:41:44Z franck $
3
# $Id: alcasar-bl.sh 2441 2017-11-21 14:41:17Z franck $
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 316... Line 316...
316
				echo "server=/$i/#" >> $DIR_DNS_BL/authorized-ossi-bl.conf
316
				echo "server=/$i/#" >> $DIR_DNS_BL/authorized-ossi-bl.conf
317
			done
317
			done
318
			ln -s $DIR_DNS_BL/authorized-ossi-bl.conf $DIR_DNS_BL_ENABLED/authorized-ossi-bl
318
			ln -s $DIR_DNS_BL/authorized-ossi-bl.conf $DIR_DNS_BL_ENABLED/authorized-ossi-bl
319
		fi
319
		fi
320
		# adapt OSSI BL & WL custom files
320
		# adapt OSSI BL & WL custom files
321
		for dir in $DIR_DNS_BL_ENABLED $DIR_DNS_WL_ENABLED $DIR_IP_BL_ENABLED $DIR_IP_WL_ENBALED $DIR_DNS_BL $DIR_DNS_WL $DIR_IP_BL $DIr_IP_WL
321
		for dir in $DIR_DNS_BL_ENABLED $DIR_DNS_WL_ENABLED $DIR_IP_BL_ENABLED $DIR_IP_WL_ENBALED $DIR_DNS_BL $DIR_DNS_WL $DIR_IP_BL $DIR_IP_WL
322
		do
322
		do
323
			rm -f $dir/ossi*
323
			rm -f $dir/ossi*
324
		done
324
		done
325
		find $DIR_DG_BL/ -type f -name domains | grep ossi- > $FILE_tmp # retrieve ossi directories name where a domain file exist
325
		find $DIR_DG_BL/ -type f -name domains | grep ossi- > $FILE_tmp # retrieve ossi directories name where a domain file exist
326
		$SED "s?\/domains??g" $FILE_tmp # remove "/domains" suffix
326
		$SED "s?\/domains??g" $FILE_tmp # remove "/domains" suffix