wok diff bind/receipt @ rev 17315

Up: tazweb (1.10)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 03 00:55:32 2014 +0200 (2014-11-03)
parents 31615bc6828a
children ea94058cfe7f
line diff
     1.1 --- a/bind/receipt	Fri Jan 24 07:30:06 2014 +0000
     1.2 +++ b/bind/receipt	Mon Nov 03 00:55:32 2014 +0200
     1.3 @@ -38,3 +38,11 @@
     1.4  	cp -a $stuff/etc $fs
     1.5  }
     1.6  
     1.7 +# Post message when installing.
     1.8 +post_install()
     1.9 +{
    1.10 +	localnets="192.168.0.0/16; 127.0.0.1;"
    1.11 +	grep -qs allow-recursion $1/etc/bind/named.conf.options ||
    1.12 +	sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \
    1.13 +		$1/etc/bind/named.conf.options
    1.14 +}