#!/bin/sh

#######################################################################
## File : uninstall_me
## Rev  : 000124
##
## Things this uninstall_me script must do :
##
## 	1) Remove all RPMs installed by the upgrade_me script.
##	2) Remove the md5list for all RPMs that were installed.
##	3) Rebuild the UI to reflect changes in installed packages.
##	4) Return status 0 on success.
######################################################################

## Repeat this block of code for each RPM installed by the
## upgrade_me script.  Note that in our sample upgrade_me script
## we only installed a single RPM named null-0-0

if [ `rpm -e --nodeps Apache-1.3.12-1` ]; then
	echo "4015 Error uninstalling RPM"
	exit 1
fi


## Also remove the md5list for each RPM that was installed.
## Default directory for md5list files is : /var/lib/cobalt
## Filename format for an RPM md5list is  : 
## <List file>-<Version>.md5lst

rm -f /var/lib/cobalt/Apache-1.3.12-1.md5lst


## Now rebuild the UI - Do not edit or remove.

/usr/admserv/cgi-bin/.cobalt/install/install.cgi < /dev/null > /dev/null


## Signal exited successfully

exit 0
