wok diff bind/receipt @ rev 17409

Up tazlito (5.2.5)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 28 21:49:51 2014 +0100 (2014-11-28)
parents 31615bc6828a
children ea94058cfe7f
line diff
     1.1 --- a/bind/receipt	Fri Jan 24 07:30:06 2014 +0000
     1.2 +++ b/bind/receipt	Fri Nov 28 21:49:51 2014 +0100
     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 +}