nixos/mysql: Unbreak initial database creation
This commit is contained in:
parent
b7a6c54851
commit
2ea8f8acdf
@ -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 New Issue
Block a user