From 64a3ddb9659d69558a619cf732645ca3190377ba Mon Sep 17 00:00:00 2001 From: Mikhail Date: Wed, 22 Feb 2017 10:31:11 +0400 Subject: [PATCH] Fix mysql command line Command failed due to incorrect quotes Change-Id: Iadcb874705c03459b1e9ee2a06cd823251f5f4c8 --- service/murano-api.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/murano-api.yaml b/service/murano-api.yaml index 05a7434..4b3fc27 100644 --- a/service/murano-api.yaml +++ b/service/murano-api.yaml @@ -14,11 +14,11 @@ service: pre: - name: murano-db-create type: single - command: mysql -v -u root -p{{ db.root_password }} -h {{ address(service.database) }} -e 'create database `{{ murano.db.name }}`; + command: mysql -v -u root -p{{ db.root_password }} -h {{ address(service.database) }} -e "create database {{ murano.db.name }}; create user '{{ murano.db.username }}'@'%' identified by '{{ murano.db.password }}' {% if db.tls.enabled %} require ssl {% endif %}; - grant all privileges on `{{ murano.db.name }}`.* to "{{ murano.db.username }}"@"%" identified by "{{ murano.db.password }}" - {% if db.tls.enabled %} require ssl {% endif %};' + grant all privileges on {{ murano.db.name }}.* to '{{ murano.db.username }}'@'%' identified by '{{ murano.db.password }}' + {% if db.tls.enabled %} require ssl {% endif %};" dependencies: - {{ service.database }} - name: murano-db-sync