From c6f4e260efc99ab5e094f75012fc374fbc2b2560 Mon Sep 17 00:00:00 2001 From: Sergey Skripnick Date: Wed, 25 Feb 2015 15:16:42 +0100 Subject: [PATCH] Fix db configuration in rally_install.sh Now sed expression will work with both old and new versions of config. Closes-Bug: #1425439 Change-Id: I58d8f4eeb872d958a9811833e9b4d973f855bf0c --- install_rally.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_rally.sh b/install_rally.sh index 7a2e5329b1..595d4014e2 100755 --- a/install_rally.sh +++ b/install_rally.sh @@ -155,7 +155,7 @@ install_rally() { configure_rally() { mkdir -p ${RALLY_DATABASE_DIR} ${RALLY_CONFIGURATION_DIR} - sed 's|#connection=|connection=sqlite:///'${RALLY_DATABASE_DIR}'/rally.sqlite|' \ + sed 's|#connection *=.*|connection = sqlite:///'${RALLY_DATABASE_DIR}'/rally.sqlite|' \ ${TMP}/etc/rally/rally.conf.sample > ${RALLY_CONFIGURATION_DIR}/rally.conf rally-manage db recreate chmod -R go+w ${RALLY_DATABASE_DIR}