#!/bin/sh # #ident "@(#)postinstall 1.56 06/09/99 SMI" # # Copyright 06/09/99 Sun Microsystems, Inc. All Rights Reserved # # Postinstall script for package: SUNWmhs1d # # Exit codes for installation scripts e_ok=0 e_fatal=1 # stop installation on this exit e_warning=2 # Installation will go on. e_int=3 # Interrupted. Stop installation e_reboot=10 # User must reboot after installation of all selected packages e_rebootnow=20 # User must reboot right after installation of current package # To be added to one of the single-digit exit code above AWK=/usr/bin/awk ECHO=/usr/bin/echo GREP=/usr/bin/grep PS=/usr/bin/ps WC=/usr/bin/wc # Trap interrupt trap `exit $e_int` 15 # # Restore a previous configuration if needed # if [ "$RESTORECONF" != "" ] then if [ -d $RESTORECONF ] then # (cd $RESTORECONF; /bin/mv Deja.properties $BASEDIR/SUNWconn/ldap/html/) (cd $RESTORECONF; cp nis.conf $ETCDIR/current) (cd $RESTORECONF/mapping; cp ./nis.mapping $ETCDIR/current/mapping) echo $RESTORECONF configuration restored under $ETCDIR/current fi fi echo "" echo "To perform the initial configuration of the NIS component of" echo "Solaris Extensions for Netscape Directory Server, type: " echo "\t$BASEDIR/SUNWconn/sbin/dsypinstall" echo "" # # Inform the system of installed files echo "Updating system information" installf -f -c none $PKGINST || exit $e_warning # # Start dsadm to enable launching dsadmintool #/etc/init.d/dsadm start # # Happy End exit $e_ok