aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2016-11-18 16:06:30 +0300
committerIgor Pashev <pashev.igor@gmail.com>2016-11-18 16:06:33 +0300
commit0b95c682b4c9b6f6a118637620097638745667d3 (patch)
tree25c3afe24cdbe2e9163ead512c64944680b00e06 /modules
parentf145b1b1fbd392dd9f539744c76142b142cce4e9 (diff)
downloadnixsap-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.nix2
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}