]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fixed problems with starting MySQL in heat-db-setup
authorZane Bitter <zbitter@redhat.com>
Fri, 11 May 2012 16:54:38 +0000 (18:54 +0200)
committerZane Bitter <zbitter@redhat.com>
Fri, 11 May 2012 16:54:38 +0000 (18:54 +0200)
Signed-off-by: Zane Bitter <zbitter@redhat.com>
bin/heat-db-setup

index 5eef22968ec4aba73d70226938af974259718d1f..744df3630ee771966fb9b6ee584d0c540471d1b5 100755 (executable)
@@ -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
                                ;;
                        *)