# Copyright 06/21/99 Sun Microsystems, Inc. All Rights Reserved. # # "@(#)postremove 1.11 99/06/21 Sun Microsystems" PATH=/bin:/usr/bin:/sbin:/usr/sbin # 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 codes above # # Trap interrupt # trap `exit $e_int` 15 #JWSPATH=$BASEDIR/SUNWjeev # # remove servlet from jws config file # #CONFIG_PATH=$JWSPATH/properties/server/javawebserver/webpageservice #CONFIG_PATH_SSL=$JWSPATH/properties/server/javawebserver/secureservice #CONFIG_FILE=servlets.properties #SERVLET_TEXT="servlet.logserver.code=LogServer" #if [ -f "$CONFIG_PATH/$CONFIG_FILE" ]; then # echo "removing servlet from jws config..." # cp $CONFIG_PATH/$CONFIG_FILE $CONFIG_PATH/$CONFIG_FILE-orig-$$ # sed -e '/^servlet\.logserver/d' $CONFIG_PATH/$CONFIG_FILE-orig-$$ > $CONFIG_PATH/$CONFIG_FILE # rm $CONFIG_PATH/$CONFIG_FILE-orig-$$ #fi #if [ -f "$CONFIG_PATH_SSL/$CONFIG_FILE" ]; then # echo "removing servlet from jws secure config..." # cp $CONFIG_PATH_SSL/$CONFIG_FILE $CONFIG_PATH_SSL/$CONFIG_FILE-orig-$$ # sed '/^servlet\.logserver/d' $CONFIG_PATH_SSL/$CONFIG_FILE-orig-$$ > $CONFIG_PATH_SSL/$CONFIG_FILE # rm $CONFIG_PATH_SSL/$CONFIG_FILE-orig-$$ #fi # # remove platform log props # CONF_PATH=/etc/opt/SUNWstnr CONF_FILE=platform.conf LOG_CONF_FILE=log.conf if [ -w "$CONF_PATH/$CONF_FILE" ]; then echo "removing log props from platform conf file..." cp $CONF_PATH/$CONF_FILE $CONF_PATH/$CONF_FILE-orig-$$ sed '/^log\./d' $CONF_PATH/$CONF_FILE > /tmp/$CONF_FILE-new mv /tmp/$CONF_FILE-new $CONF_PATH/$CONF_FILE fi # # remove log conf file # echo "removing log conf file..." rm -f $CONF_PATH/$LOG_CONF_FILE* exit $e_ok