This repository has been archived by the owner on Sep 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
/
install
executable file
·98 lines (79 loc) · 2.77 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/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