diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2016-11-18 16:06:30 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2016-11-18 16:06:33 +0300 |
commit | 0b95c682b4c9b6f6a118637620097638745667d3 (patch) | |
tree | 25c3afe24cdbe2e9163ead512c64944680b00e06 /modules | |
parent | f145b1b1fbd392dd9f539744c76142b142cce4e9 (diff) | |
download | nixsap-0b95c682b4c9b6f6a118637620097638745667d3.tar.gz |
mariadb: help mysql_install_db find my_print_defaults
It's required for parsing the defaults file.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/apps/mariadb/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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} |