From: Zane Bitter Date: Fri, 11 May 2012 16:54:38 +0000 (+0200) Subject: Fixed problems with starting MySQL in heat-db-setup X-Git-Tag: 2014.1~1847 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=cbdbf3146eb268da56f775a3a8d9d91197464e40;p=openstack-build%2Fheat-build.git Fixed problems with starting MySQL in heat-db-setup Signed-off-by: Zane Bitter --- diff --git a/bin/heat-db-setup b/bin/heat-db-setup index 5eef2296..744df363 100755 --- a/bin/heat-db-setup +++ b/bin/heat-db-setup @@ -58,7 +58,7 @@ install_mysql_server() { } start_mysql_server() { - $SERVICE_START + sudo $SERVICE_START } MYSQL_HEAT_PW_DEFAULT="heat" @@ -149,13 +149,13 @@ fi if ! $SERVICE_STATUS > /dev/null then if [ -z "${ASSUME_YES}" ] ; then - printf "$MYSQL_SERVICE is not running. Would you like to start it now? (y/n): " + printf "$SERVICE_MYSQLD is not running. Would you like to start it now? (y/n): " read response case "$response" in y|Y) ;; n|N) - echo "$MYSQL_SERVICE must be running. Please start it before proceeding." + echo "$SERVICE_MYSQLD must be running. Please start it before proceeding." exit 0 ;; *)