#!/bin/sh
#
# Copyright (c) 2002 by Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "@(#)postpatch 1.0 - 02/10/23"


UPDATE_CDS=${ROOTDIR}/usr/iplanet/ds5/setup/slapd/examples/update_configDS.sh
SLAPD_INF=/usr/iplanet/ds5/setup/slapd/slapd.inf
ADMIN_INF=/usr/iplanet/ds5/setup/admin/admin.inf
instance_list=`ls -d ${ROOTDIR}/var/ds5/slapd-* 2>/dev/null`
if [ ! "x${instance_list}" = x ] && [ -f ${UPDATE_CDS} ]
then 
    echo
    echo "You now need to update the Configuration Directory Server"
    echo "to reflect the new configuration data for both "
    echo "Administration and Directory Servers."
    echo "\nTo do that, you need to modify in the Configuration Directory"
    echo "Server the 2 entries \"cn=iPlanet Directory Server\" and"
    echo "\"cn=Netscape Administration Server\" of the relevant Server"
    echo "Group with new values for "
    echo "nsbuildnumber and nsproductversion attributes."
    echo "\nCorrect values for build numbers can be found in:"
    echo "${SLAPD_INF} and"
    echo "${ADMIN_INF}"
    echo "\nThe product version for Directory Server should be set to:"
    echo "5.1 Service Pack 3".
    echo "Product version for the Administration Server should not be changed."
    echo ""
    echo "A example script is also provided to help perform these updates:"
    echo "\t/usr/iplanet/ds5/setup/slapd/examples/update_configDS.sh"
    echo ""
fi

    

