nixos/mysql: Unbreak initial database creation

This commit is contained in:
Sarah Brofeldt 2018-02-20 21:45:49 +01:00 committed by Profpatsch
parent b7a6c54851
commit 2ea8f8acdf

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