Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 99 lines (79 sloc) 2.832 kb
#!/bin/bash
PYTHON_EXE="/usr/bin/env python"
FORCE_FRESH_INSTALL="yes"
NIMBUS_SRC_REL="`dirname $0`/.."
NIMBUS_SRC=`cd $NIMBUS_SRC_REL; pwd`
if [ "X$1" = "X" ]; then
echo ""
echo "Usage: $0 destination_dir"
echo " You must specify the destination directory."
echo ""
exit 1
fi
NIMBUS_HOME=$1
if [ -d $NIMBUS_HOME ] && [ "$(ls -A $NIMBUS_HOME)" ]; then
if [ $FORCE_FRESH_INSTALL = "yes" ]; then
echo ""
echo "The destination directory '$NIMBUS_HOME' exists and is not empty."
echo "It is not recommended to reinstall Nimbus into an existing install."
echo ""
echo "If you are making changes to the services, you can build and install those directly:"
echo " export GLOBUS_LOCATION=$NIMBUS_HOME/services"
echo " scripts/all-build-and-install.sh"
echo ""
echo "If you know what you are doing and want to reinstall, edit this script:"
echo " $0"
echo "and change FORCE_FRESH_INSTALL to \"no\""
echo ""
exit 1
fi
fi
# returns 0 if Python 2.4+
$PYTHON_EXE -c "import sys; sys.exit(sys.version_info < (2,4))"
if [ $? -ne 0 ]; then
echo "ERROR: Your system must have Python version 2.4 or later."
exit 1
fi
$NIMBUS_SRC/bin/create-nimbus-home $NIMBUS_HOME
if [ $? -ne 0 ]; then
echo ""
echo "Nimbus home directory creation failed!"
exit 1
fi
echo "-----------------------------------------------------------------"
echo " Configuring installed services"
echo "-----------------------------------------------------------------"
echo ""
CONFIG_SCRIPT="$NIMBUS_HOME/bin/nimbus-configure"
if [ ! -f $CONFIG_SCRIPT ]; then
echo "Configuration script could not be found: $CONFIG_SCRIPT"
exit 1
fi
$CONFIG_SCRIPT
if [ $? -ne 0 ]; then
echo "Nimbus configuration script failed! You may try running it manually:"
echo " $CONFIG_SCRIPT"
echo "You can also run the script with debugging output:"
echo " $CONFIG_SCRIPT --debug"
exit 1
fi
echo ""
echo "-----------------------------------------------------------------"
echo " Nimbus installation succeeded!"
echo "-----------------------------------------------------------------"
echo ""
echo "However, additional configuration may be necessary:"
echo ""
echo " To run the auto-configuration program, launch:"
echo " $NIMBUS_HOME/services/share/nimbus-autoconfig/autoconfig.sh"
echo ""
echo " To run the cloud configuration admin helper, launch:"
echo " $NIMBUS_HOME/services/share/nimbus-autoconfig/cloud-admin.sh"
echo ""
echo "Refer to the Administrator Guide for details:"
echo " http://www.nimbusproject.org/docs/"
echo ""
echo "You can start/stop Nimbus services with the nimbusctl command. e.g:"
echo " $NIMBUS_HOME/bin/nimbusctl start"
echo ""
exit 0
Jump to Line
Something went wrong with that request. Please try again.