From 1f1e02daadadd3ca88d50d5d81034b3244a7a93e Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Mon, 7 Sep 2015 17:05:56 +0200 Subject: [PATCH] mysql: add nettools to path The mysql_install_db command, called in preStart, needs the hostname command. --- nixos/modules/services/databases/mysql.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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