#!/bin/sh
# Copyright (C) 2003 SpeedSix Software Ltd.
#
# Uninstall SpeedSix License Server for Linux
#

echo
echo "Un-installing SpeedSix License Server V1.2 for RHEL3 X86_64 (64 bit)"
echo "===================================================================="
echo "     Please consult the release notes for more information."
echo

if [ "`whoami`" != "root" ]; then
        echo "You need to be root to run this script. You can become root"
        echo "by using the command su. Please do this, then restart the"
        echo "un-installation with ./uninstall_ssls64"
        exit 1
fi

echo
echo -n "Are you sure you want to un-install? [y or n] > "
read inp
case $inp in
    y*) break;;
    *) echo "OK ... leaving everything installed ... "; exit 1;;
esac
echo

/sbin/chkconfig --del sslserver
/etc/init.d/sslserver stop
rpm -ev sslserver64

echo
echo "Un-install completed."
echo
exit 0
