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:
parent
e704f24155
commit
2acebe6a71
@ -57,7 +57,6 @@ init_variables() {
|
|||||||
PIP_SECURE_LOCATION="https://raw.github.com/pypa/pip/master/contrib/get-pip.py"
|
PIP_SECURE_LOCATION="https://raw.github.com/pypa/pip/master/contrib/get-pip.py"
|
||||||
TMP="`dirname \"$0\"`"
|
TMP="`dirname \"$0\"`"
|
||||||
TMP="`( cd \"${TMP}\" && pwd )`"
|
TMP="`( cd \"${TMP}\" && pwd )`"
|
||||||
RALLY_GIT=${TMP%/*}
|
|
||||||
|
|
||||||
if [ "${scope}" = "system" ]; then
|
if [ "${scope}" = "system" ]; then
|
||||||
RALLY_DATABASE_DIR="/var/lib/rally/database"
|
RALLY_DATABASE_DIR="/var/lib/rally/database"
|
||||||
@ -127,13 +126,13 @@ install_rally_requirements() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_rally() {
|
install_rally() {
|
||||||
cd ${RALLY_GIT}
|
cd ${TMP}
|
||||||
python setup.py install
|
python setup.py install
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_rally() {
|
configure_rally() {
|
||||||
mkdir -p ${RALLY_DATABASE_DIR} ${RALLY_CONFIGURATION_DIR}
|
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
|
sed -i "/#connection=<None>/a connection=sqlite:////${RALLY_DATABASE_DIR}/rally.sqlite" ${RALLY_CONFIGURATION_DIR}/rally.conf
|
||||||
|
|
||||||
rally-manage db recreate
|
rally-manage db recreate
|
@ -16,5 +16,5 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
sudo tools/install_rally.sh
|
sudo ./install_rally.sh
|
||||||
rally deployment list
|
rally deployment list
|
||||||
|
Loading…
Reference in New Issue
Block a user