#!/bin/ksh
#
#ident	"@(#)postremove	1.13	05/05/25 SMI"
#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# DVTS postremove
#

# variables

# functions

### MAIN ###

# remove hcts directory

#if [ -d /var/http/demo ]
#then
#	rm -rf /var/http/demo
#fi

#if [ -d /var/http/icons ]
#then
#	rm -rf /var/http/icons
#fi
 
#2004/01/05
#if [ -d /export/home/ftp ] 
#then
#	rm -rf /export/home/ftp
#fi

#if [ -d /export/home/tmp ]
#then
#	rm -rf /export/home/tmp
#fi

#if [ -d /export/home/nfs ]
#then
#	rm -rf /export/home/nfs
#fi

#if [ -d /mnt/nfstest ]
#then
#	rm -rf /mnt/nfstest
#fi

#if [ -f /.rhosts ]
#then
	#rm -f /.rhosts
#fi

#cat /etc/default/login | sed -e 's/#CONSOLE=/CONSOLE=/' > /tmp/etc_default_login
#mv /tmp/etc_default_login /etc/default/login

#if [ `grep -c '/export/home/nfs' /etc/dfs/dfstab` != 0 ]
#then
#	cat /etc/dfs/dfstab | sed -e '/DVTS/d' > /tmp/etc_dfs_dfstab
#	mv /tmp/etc_dfs_dfstab /etc/dfs/dfstab
#	rm -f /tmp/etc_dfs_dfstab
#fi

if [ -f /usr/apache/bin/apachectl ]
then
	rm -rf /var/apache/cgi-bin/SUNWhcts #modified for ksh issue on solaris 10 
	if [ -f /var/apache/htdocs/index.org.html ]
	then
		mv /var/apache/htdocs/index.org.html /var/apache/htdocs/index.html
	else
		rm -f /var/apache/htdocs/index.html
		
	fi
fi
# Remove files and directories created
if [ -f /var/apache/icons/sun_logo_rgb.gif ]
then
	rm  /var/apache/icons/sun_logo_rgb.gif
fi

if [ -f /var/apache/htdocs/common.css ]
then
	rm  /var/apache/htdocs/common.css
fi

if [ -f /var/apache/htdocs/util.js ]
then
	rm  /var/apache/htdocs/util.js
fi

rm -rf /var/apache/htdocs/docs
 
if [ -d /opt/SUNWhcts ]
then
	rm -rf /opt/SUNWhcts
fi
