services.mysql: properly quote database.name

This commit is contained in:
Eric Bailey 2018-01-12 21:58:21 -06:00 committed by Profpatsch
parent 86ab2e3842
commit 6b45dbd99c

View file

@ -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