Subversion Repositories ALCASAR

Rev

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

Rev 2770 Rev 3100
Line 77... Line 77...
77
					mv $FILE_tmp $DIR_DNS_BL/$DOMAIN.conf
77
					mv $FILE_tmp $DIR_DNS_BL/$DOMAIN.conf
78
					mv $FILE_ip_tmp $DIR_IP_BL/$DOMAIN
78
					mv $FILE_ip_tmp $DIR_IP_BL/$DOMAIN
79
				else
79
				else
80
					# adapt to the unbound syntax for the whitelist
80
					# adapt to the unbound syntax for the whitelist
81
					$SED "s?.*?local-zone: & transparent?g" $FILE_tmp
81
					$SED "s?.*?local-zone: & transparent?g" $FILE_tmp
-
 
82
					$SED "p; s? transparent? ipset?g" $FILE_tmp # duplicate lines to enable ipset module
82
					mv $FILE_tmp $DIR_DNS_WL/$DOMAIN.conf
83
					mv $FILE_tmp $DIR_DNS_WL/$DOMAIN.conf
83
					mv $FILE_ip_tmp $DIR_IP_WL/$DOMAIN
84
					mv $FILE_ip_tmp $DIR_IP_WL/$DOMAIN
84
				fi
85
				fi
85
				rm -f $FILE_tmp $FILE_ip_tmp
86
				rm -f $FILE_tmp $FILE_ip_tmp
86
			done
87
			done