#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"@(#)postinstall.tmpl	1.4	04/12/09 SMI"
#

# add the kprop script to crontab if needed
DEST=${PKG_INSTALL_ROOT:-/}/var/spool/cron/crontabs/root
grep -s /usr/lib/krb5/kprop_script $DEST >/dev/null 2>&1
if [ $? -ne  0 ]; then
	echo "#10 3 * * * /usr/lib/krb5/kprop_script ___slave_kdcs___" >>$DEST
fi

# add SEAM URL for gkadmin if needed
KRB5_CFG=${PKG_INSTALL_ROOT:-/}/etc/krb5/krb5.conf
grep -s "^[#	]*gkadmin[	 ]=[	 ]{" $KRB5_CFG >/dev/null 2>&1
if [ $? -ne 0 ]; then
	echo "	gkadmin = {" >>$KRB5_CFG
	echo "		help_url = http://docs.sun.com:80/ab2/coll.384.1/SEAM/@AB2PageView/1195" >>$KRB5_CFG
	echo "	}" >>$KRB5_CFG
fi

exit 0
