#######################################################
##  Postinstall script for Interactive Network Dispatcher 
##  This script takes into account variables that are
##  created in "pkginfo" and "request" script.
#######################################################

# ------------------------------------------------------
# SED script, replace the variable in the ./ndcontrol
# and ./ndserver script with the real java path (gotten
# during execution of the request script.  File is then
# copied over to /usr/bin!
# ------------------------------------------------------
#!/bin/ksh
/bin/sed "s!&IBMNDJAVADIR.!$JAVADIR!" /$NDDIR/bin/ndcontrol > /usr/bin/ndcontrol
/bin/sed "s!&IBMNDJAVADIR.!$JAVADIR!" /$NDDIR/bin/ndserver > /usr/bin/ndserver

/bin/chmod 0700 /usr/bin/ndcontrol
/bin/chmod 0700 /usr/bin/ndserver

