#! /bin/sh
#
# Copyright (c) 2006 by Sun Microsystems, Inc.
# All rights reserved.
#
# "@(#)preinstall 1.1     05/05/06 SMI"
#

OS=`uname -s`
if [ ! -n "${OS}" ]; then
    echo "Unable to determine operating system."
    exit 1
fi

# For Linux, remove old directory leftover when upgrading from 2.x
# so the install can create a symlink for the same path.
if [ "${OS}" = "Linux" ]; then
    PATH=/usr/share/webconsole/com_sun_web_ui
    if [ -d ${PATH} ]; then
	/bin/rm -rf ${PATH} > /dev/null 2>&1
    fi
fi

exit 0
