#! /bin/sh
#
#ident	"@(#)postremove	1.5	04/01/07 SMI"
#
# Copyright (c) 2002 by Sun Microsystems, Inc.
# All rights reserved.
#

CONSOLE_BASE=$BASEDIR/var/opt/webconsole

/bin/rm -rf ${BASEDIR}/var/log/webconsole >/dev/null 2>&1

# Purge the console base, if there's nothing in it.
# (Why doesn't pkgrm do this??)
out=`ls -A $CONSOLE_BASE 2>&1`
if [ $? -eq 0 ]; then
    if [ ! -n "$out" ]; then
	/bin/rm -rf $CONSOLE_BASE
    fi
fi

exit 0
