Fix the sql in the rails template (didn't work with the mysql in f16)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
d7c2c89a15
commit
6bae53753b
@ -147,9 +147,11 @@
|
||||
"files" : {
|
||||
"/tmp/setup.mysql" : {
|
||||
"content" : { "Fn::Join" : ["", [
|
||||
"CREATE USER '", { "Ref" : "DBUsername" }, "'@'localhost' IDENTIFIED BY '", { "Ref" : "DBPassword" }, "';\n",
|
||||
"GRANT ALL ON ", { "Ref" : "DBName" }, ".* TO '", { "Ref" : "DBUsername" }, "'@'localhost';\n",
|
||||
"FLUSH PRIVILEGES;\n"
|
||||
"CREATE DATABASE ", { "Ref" : "DBName" }, ";\n",
|
||||
"GRANT ALL PRIVILEGES ON ", { "Ref" : "DBName" }, ".* TO '", { "Ref" : "DBUsername" }, "'@'localhost'\n",
|
||||
"IDENTIFIED BY '", { "Ref" : "DBPassword" }, "';\n",
|
||||
"FLUSH PRIVILEGES;\n",
|
||||
"EXIT\n"
|
||||
]]},
|
||||
"mode" : "000644",
|
||||
"owner" : "root",
|
||||
|
Loading…
Reference in New Issue
Block a user