
# install JON license
echo " * Downloading JON license..."
wget $JON_LICENSE_URL -O /home/$JON_USER/
$JON_ROOT/jbossas/server/default/deploy/rhq.ear.rej/license/license.xml
echo " * Starting JON for the first time..."
service rhq-server.sh start
# install JON plugins
echo " * Waiting until server installs..."
sleep $AUTOINSTALL_WAITTIME #wait for autoinstall to finish
echo " * Installing plugins..."
for i in /home/$JON_USER/*.zip ; do unzip -d /tmp/rhq-plugins $i *.jar ; done
find /tmp/rhq-plugins -name "*.jar" | xargs -i[] mv [] /home/$JON_USER/
$JON_ROOT/jbossas/server/default/deploy/rhq.ear/rhq-downloads/rhq-plugins
/bin/rm -rf /tmp/rhq-plugins
echo " * Restarting JON..."
service rhq-server.sh stop
service rhq-server.sh start
satellite_channels.sync
#!/bin/bash
#These next line attempts a direct import
# Function to use for help throughout the script
help_func() {
echo
echo "usage: satellite-sync -e
satellite-sync -r"
echo
}
# Check for existence of the sattellite file
if [ ! -f satellite_channels.list ]; then
echo
echo "The satellite_channels.list file
does not exist. Please create the file"
exit 1
echo
fi
# Make sure at least one argument was passed to the script
if [ "$#" -eq "0" ]; then
help_func
www.redhat.com 128
Kommentare zu diesen Handbüchern