summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorArseniy Seroka <jagajaga@users.noreply.github.com>2015-09-08 13:27:48 +0300
committerArseniy Seroka <jagajaga@users.noreply.github.com>2015-09-08 13:27:48 +0300
commit0236bd659013739f5047c714923f4735d5bfc200 (patch)
tree14e201537c3c0b64eb4e7d5ab41836bba5e4f587 /nixos
parent8bc4775a82dfc71b94f314686841997168eda023 (diff)
parent1f1e02daadadd3ca88d50d5d81034b3244a7a93e (diff)
downloadnixlib-0236bd659013739f5047c714923f4735d5bfc200.tar
nixlib-0236bd659013739f5047c714923f4735d5bfc200.tar.gz
nixlib-0236bd659013739f5047c714923f4735d5bfc200.tar.bz2
nixlib-0236bd659013739f5047c714923f4735d5bfc200.tar.lz
nixlib-0236bd659013739f5047c714923f4735d5bfc200.tar.xz
nixlib-0236bd659013739f5047c714923f4735d5bfc200.tar.zst
nixlib-0236bd659013739f5047c714923f4735d5bfc200.zip
Merge pull request #9696 from basvandijk/mysql-hostname-fix
Bring hostname into scope needed by mysql_install_db
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/databases/mysql.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/mysql.nix b/nixos/modules/services/databases/mysql.nix
index 1cdecedfc772..efc52e917b00 100644
--- a/nixos/modules/services/databases/mysql.nix
+++ b/nixos/modules/services/databases/mysql.nix
@@ -167,6 +167,12 @@ in
 
         unitConfig.RequiresMountsFor = "${cfg.dataDir}";
 
+        path = [
+          # Needed for the mysql_install_db command in the preStart script
+          # which calls the hostname command.
+          pkgs.nettools
+        ];
+
         preStart =
           ''
             if ! test -e ${cfg.dataDir}/mysql; then