#!/bin/sh
#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident	"@(#)postinstall.tmpl	1.4	04/12/09 SMI"
#
# postinstall - disable NFS server if we're in a local zone
#

if [ -n "$SUNW_PKG_INSTALL_ZONENAME" -a \
   "$SUNW_PKG_INSTALL_ZONENAME" != "global" ]; then
	touch $BASEDIR/var/svc/profile/upgrade
	cat >> $BASEDIR/var/svc/profile/upgrade <<-EOF
		/usr/sbin/svcadm disable svc:/network/nfs/server
EOF
fi

exit 0
