From 0b95c682b4c9b6f6a118637620097638745667d3 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 18 Nov 2016 16:06:30 +0300 Subject: mariadb: help mysql_install_db find my_print_defaults It's required for parsing the defaults file. --- modules/apps/mariadb/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/apps/mariadb/default.nix b/modules/apps/mariadb/default.nix index 13b9626..5610ede 100644 --- a/modules/apps/mariadb/default.nix +++ b/modules/apps/mariadb/default.nix @@ -435,7 +435,7 @@ in { mkdir -p ${concatMapStringsSep " " (d: "'${d}'") mydirs} if [ ! -f '${cfg.mysqld.datadir}/mysql/user.MYI' ]; then rm -rf '${cfg.mysqld.datadir}/mysql' - ${cfg.package}/bin/mysql_install_db --defaults-file=${mysqldCnf} + ${cfg.package}/bin/mysql_install_db --defaults-file=${mysqldCnf} --basedir='${cfg.package}' fi chown -Rc '${cfg.user}':$(id -g -n '${cfg.user}') '${rundir}' ${concatMapStringsSep " " (d: "'${d}'") mydirs} chmod -Rc u=rwX,g=rX,o= ${concatMapStringsSep " " (d: "'${d}'") mydirs} -- cgit v1.2.3