move install script to project root dir

This is helpful for new guys who can't or wouldn't find this file.

Change-Id: I9239a388ba7831a4f6c9b70e938a805903238796
This commit is contained in:
Kun Huang 2014-04-06 11:52:01 +08:00
parent e704f24155
commit 2acebe6a71
2 changed files with 3 additions and 4 deletions

View File

@ -57,7 +57,6 @@ init_variables() {
PIP_SECURE_LOCATION="https://raw.github.com/pypa/pip/master/contrib/get-pip.py"
TMP="`dirname \"$0\"`"
TMP="`( cd \"${TMP}\" && pwd )`"
RALLY_GIT=${TMP%/*}
if [ "${scope}" = "system" ]; then
RALLY_DATABASE_DIR="/var/lib/rally/database"
@ -127,13 +126,13 @@ install_rally_requirements() {
}
install_rally() {
cd ${RALLY_GIT}
cd ${TMP}
python setup.py install
}
configure_rally() {
mkdir -p ${RALLY_DATABASE_DIR} ${RALLY_CONFIGURATION_DIR}
cp ${RALLY_GIT}/etc/rally/rally.conf.sample ${RALLY_CONFIGURATION_DIR}/rally.conf
cp ${TMP}/etc/rally/rally.conf.sample ${RALLY_CONFIGURATION_DIR}/rally.conf
sed -i "/#connection=<None>/a connection=sqlite:////${RALLY_DATABASE_DIR}/rally.sqlite" ${RALLY_CONFIGURATION_DIR}/rally.conf
rally-manage db recreate

View File

@ -16,5 +16,5 @@
# under the License.
sudo tools/install_rally.sh
sudo ./install_rally.sh
rally deployment list