3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #54197 from dermetfan/fix/nixos-mysql

nixos/mysql: fix option `ensureDatabases`
This commit is contained in:
Silvan Mosberger 2019-01-22 15:35:16 +01:00 committed by GitHub
commit 120ce2f399
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,7 +362,7 @@ in
${optionalString (cfg.ensureDatabases != []) ''
(
${concatMapStrings (database: ''
echo "CREATE DATABASE IF NOT EXISTS ${database};"
echo "CREATE DATABASE IF NOT EXISTS \`${database}\`;"
'') cfg.ensureDatabases}
) | ${mysql}/bin/mysql -u root -N
''}