#!/bin/sh ######################################################################### # "@(#)postinstall 1.3 99/08/02 SMI" # Copyright (c)1998 Sun Microsystems, Inc. # All Rights Reserved. # ######################################################################### _nss_path="SUNWstnr/platform" _basedir="$BASEDIR" _wa_basedir=`/bin/pkgparam $PKG BASEDIR` if [ "$_basedir" -a "$_wa_basedir" ]; then /usr/bin/test -L $_basedir/$_nss_path/public_html/WebAccess if [ $? -ne 0 ]; then /usr/bin/ln -s $_wa_basedir/$PKG/public_html/WebAccess $_basedir/$_nss_path/public_html/WebAccess fi # now that the symbolic link is setup - do installf to install this # path in the $PKG /usr/sbin/installf -c none $PKG $_basedir/$_nss_path/public_html/WebAccess=$_wa_basedir/$PKG/public_html/WebAccess s # Create directory for SIMS Users WebStore /usr/bin/test -d /var/opt/$PKG/SimsUsers if [ $? -ne 0 ]; then /bin/mkdir -m 751 -p /var/opt/$PKG/SimsUsers fi /usr/sbin/installf -c none $PKG /var/opt/$PKG/SimsUsers d 751 nobody nobody # Setup /etc/rc3.d... /usr/bin/sed -e \ 's?WA_HOME=/opt/SUNWwa?WA_HOME='$_wa_basedir/$PKG'?' \ $_wa_basedir/$PKG/etc/webaccess.init \ > /etc/rc3.d/S89webaccess /usr/bin/ln -s \ /etc/rc3.d/S89webaccess \ /etc/rc3.d/K89webaccess chgrp sys /etc/rc3.d/S89webaccess chgrp sys /etc/rc3.d/K89webaccess chmod 750 /etc/rc3.d/S89webaccess chmod 750 /etc/rc3.d/K89webaccess /usr/sbin/installf -c none $PKG /etc/rc3.d/S89webaccess f 750 root sys /usr/sbin/installf -c none $PKG /etc/rc3.d/K89webaccess=/etc/rc3.d/S89webaccess s /usr/sbin/installf -f $PKG fi exit 0