
#script default values:
HOSTNAME=`hostname`
IP=`ifconfig eth0 | grep 'inet addr' | sed 's/.*inet addr://' | sed 's/ .*//'`
CURR_USER=`whoami`
AUTOINSTALL_WAITTIME=300
UNINSTALL_ONLY=0
RECREATE_USER=0
# JON installation defaults (what user gets created, where JON lands)
JON_ROOT=rhq/
JON_USER=rhq
# Java defaults
JAVA_HOME=/usr/lib/jvm/jre-openjdk
# JON-specific defaults
DB_CONNECTION_URL="jdbc:postgresql:\/\/127.0.0.1:5432\/rhq"
DB_SERVER_NAME="127.0.0.1"
HA_NAME=$HOSTNAME
SAT_SERVER=http://rhcf-sat-vm.cloud.lab.eng.bos.redhat.com
JON_URL="$SAT_SERVER/pub/kits/jon-server-2.4.1.GA.zip"
SOA_PI_URL="$SAT_SERVER/pub/kits/jon-plugin-pack-soa-2.4.1.GA.zip"
EWS_PI_URL="$SAT_SERVER/pub/kits/jon-plugin-pack-ews-2.4.1.GA.zip"
EAP_PI_URL="$SAT_SERVER/pub/kits/jon-plugin-pack-eap-2.4.1.GA.zip"
JON_LICENSE_URL="$SAT_SERVER/pub/kits/jon-license.xml"
if [ $CURR_USER != "root" ]; then
echo "You must be logged in as the root user to install JON."
exit 1
fi
function jon_uninstall {
# find service script
echo " * Finding JON/JOPR/RHQ service script location..."
SVC_SCRIPT=`find /etc/init.d/ -iname "*rhq*"`
if [ -z "$SVC_SCRIPT" ]; then
SVC_SCRIPT=`find /etc/init.d/ -iname "*jon*"`
fi
if [ -z "$SVC_SCRIPT" ]; then
echo " - No previous installations found."
return
fi
echo " - Found JON/JOPR/RHQ service script at: $SVC_SCRIPT"
# find home directory
echo " * Finding first-defined JON/JOPR/RHQ home directory..."
123
www.redhat.com
Kommentare zu diesen Handbüchern