X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=1a86e146c47eba557a8351c6bc1de1628b914e17;hb=248be0e1bb8731424dce5d650fbdee2f67245ca8;hp=49b83ca8b69ff56e942a98daf5939b832f0d54ad;hpb=090c1bf5d3ed4ab16c1b9d57f984402812f2a3f5;p=bind9-cn.git diff --git a/debian/postinst b/debian/postinst index 49b83ca..1a86e14 100755 --- a/debian/postinst +++ b/debian/postinst @@ -31,7 +31,7 @@ esac . /usr/share/carnet-tools/functions.sh echo "CN: Making sample configurations in /usr/share/doc/bind9-cn/examples" -echo "CN: Make sure you read them and apply *before* running Bind9 service!" +echo "CN: Make sure you change them appropriately *before* running Bind9 service!" #variables cp_get_ifaddr @@ -44,6 +44,8 @@ CARNET_REV=`echo $CARNET_IPADDR | awk -F. '{ print $3 "." $2 "." $1 ".in-addr.ar SERNO=`date +%Y%m%d01` BROJ=`echo $CARNET_IPADDR | cut -d. -f4` +echo "CN: Generating Bind9 examples in /usr/share/doc/bind9-cn/examples" + # make example named.conf.local cat > /usr/share/doc/bind9-cn/examples/named.conf.local < /usr/share/doc/bind9-cn/examples/hosts.rev < /usr/share/doc/bind9-cn/examples/resolv.conf < /etc/bind/named.conf.options.$$ + cp_mv /etc/bind/named.conf.options.$$ /etc/bind/named.conf.options + echo "CN: Removing obsolete query-source directive" + rndc reload || echo "CN: Reload didn't work, please check manually" +fi + # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts.