# $Id: postinstall,v 1.2 2006/06/01 18:26:55 elkner Exp $ if [ -z "$PKG_INSTALL_ROOT" ]; then ROOT="" BASE=$CLIENT_BASEDIR else ROOT=${PKG_INSTALL_ROOT} BASE=${PKG_INSTALL_ROOT}$CLIENT_BASEDIR fi I_DIR=${INST_DATADIR}/${PKG} echo "Checking for missing configs in ${ROOT}/etc/openldap/ ..." for CF in ${I_DIR}/root/etc/openldap/*.default; do SRC="${ROOT}/"`echo $CF | sed -e "s,${I_DIR}/root/,,"` DST=`echo $SRC | sed -e 's,.default$,,'` if [ ! -r ${DST} ]; then cp -p ${SRC} ${DST} else echo " Leaving ${DST} as is!" fi done echo " NOTE: Verify your configuration files in /etc/openldap and your LDAP schemes in ${CBASEDIR}/share/openldap/schema ! You may enable/disable the automatic startup at boot time via the usual svcadm(5) commands. E.g.: svcadm enable openldap/slapd svcadm enable openldap/slurpd svcadm disable openldap/slapd svcadm disable openldap/slurpd "