Subversion Repositories ALCASAR

Rev

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

Rev 3099 Rev 3100
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
 
2
 
3
# $Id: alcasar-bl.sh 3099 2022-12-28 11:30:30Z rexy $
3
# $Id: alcasar-bl.sh 3100 2022-12-29 14:45:06Z rexy $
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 323... Line 323...
323
			if [ $categorie_type == "white" ]
323
			if [ $categorie_type == "white" ]
324
			then
324
			then
325
			# adapt the file to the unbound syntax and enable it if needed
325
			# adapt the file to the unbound syntax and enable it if needed
326
			# for the WL
326
			# for the WL
327
				$SED "s?.*?local-zone: & transparent?g" $FILE_tmp
327
				$SED "s?.*?local-zone: & transparent?g" $FILE_tmp
-
 
328
				$SED "p; s? transparent? ipset?g" $FILE_tmp # duplicate lines to enable ipset module
328
				mv $FILE_tmp $DIR_DNS_WL/$ossi_categorie.conf
329
				mv $FILE_tmp $DIR_DNS_WL/$ossi_categorie.conf
329
				mv $FILE_ip_tmp $DIR_IP_WL/$ossi_categorie
330
				mv $FILE_ip_tmp $DIR_IP_WL/$ossi_categorie
330
				enabled=`grep ^$ossi_categorie$ $WL_CATEGORIES_ENABLED | wc -l`
331
				enabled=`grep ^$ossi_categorie$ $WL_CATEGORIES_ENABLED | wc -l`
331
				if [ $enabled == "1" ]
332
				if [ $enabled == "1" ]
332
				then
333
				then