services.mysql: properly quote database.name
This commit is contained in:
parent
86ab2e3842
commit
6b45dbd99c
1 changed files with 2 additions and 2 deletions
|
@ -289,10 +289,10 @@ in
|
|||
# Create initial databases
|
||||
if ! test -e "${cfg.dataDir}/${database.name}"; then
|
||||
echo "Creating initial database: ${database.name}"
|
||||
( echo "create database ${database.name};"
|
||||
( echo "create database `${database.name}`;"
|
||||
|
||||
${optionalString (database ? "schema") ''
|
||||
echo "use ${database.name};"
|
||||
echo "use `${database.name}`;"
|
||||
|
||||
if [ -f "${database.schema}" ]
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue