aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}