From 2ea8f8acdf6c5869299c2d8c210824ccbac5fef3 Mon Sep 17 00:00:00 2001 From: Sarah Brofeldt Date: Tue, 20 Feb 2018 21:45:49 +0100 Subject: [PATCH] nixos/mysql: Unbreak initial database creation --- nixos/modules/services/databases/mysql.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/databases/mysql.nix b/nixos/modules/services/databases/mysql.nix index 5b7390503552..cfd7b4d3b69b 100644 --- a/nixos/modules/services/databases/mysql.nix +++ b/nixos/modules/services/databases/mysql.nix @@ -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