#!/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; cp Deja.properties $BASEDIR/SUNWconn/ldap/html/) echo $RESTORECONF configuration restored under $ETCDIR/current fi fi # # # SNMP # # update the snmp master agent configuration # #RSRC=/etc/snmp/conf/dsnmpserv.rsrc #/bin/sed "s!!$BASEDIR!" $RSRC >$RSRC.tmp #/bin/mv $RSRC.tmp $RSRC # # This should read the current config first # #if [ $INSTALL_SNMP_AGENT -ne 0 ] #then # echo "Please wait ..." # # PATH="$BASEDIR/SUNWconn/sbin:$PATH" # dsnmpcfg install #echo "" #echo "The product contains two SNMP agents:" #echo "\tA LDAP Server Agent (dsnmpserv)" #echo "\tA RADIUS Server Agent (dsnmprad)" #echo "" #echo "You can configure them later by typing:" #echo "\t$BASEDIR/SUNWconn/sbin/dsnmpcfg configure" #echo "" #fi #echo "" #echo "To restore a configuration from Sun Directory Services 1.0" #echo "type:" #echo "\t/opt/SUNWconn/sbin/dsupgrade" #echo "" #echo "" #echo "To perform the initial configuration of the" #echo "Sun-Netscape Alliance Directory Services NIS 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