#!/bin/sh
#
# Update DNS and NFS export when a new host is created, to allow
# changes in DNS and netgroup membership to take effect imediately.

PATH=/usr/sbin:/sbin:$PATH
export PATH

su -s /bin/sh -c "PATH=$PATH /usr/sbin/ldap2bind" bind
exportfs -a
