diff options
author | Bas van Dijk <v.dijk.bas@gmail.com> | 2015-09-07 17:05:56 +0200 |
---|---|---|
committer | Bas van Dijk <v.dijk.bas@gmail.com> | 2015-09-08 10:32:37 +0200 |
commit | 1f1e02daadadd3ca88d50d5d81034b3244a7a93e (patch) | |
tree | d0d17372a86af6e27551b5f2a2258daeaffec29b /nixos/modules/services/databases | |
parent | d4f7bf9c2983bf1a793c0fd5b4ea82a04bb8efca (diff) |
mysql: add nettools to path
The mysql_install_db command, called in preStart, needs the hostname command.
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r-- | nixos/modules/services/databases/mysql.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/mysql.nix b/nixos/modules/services/databases/mysql.nix index 1cdecedfc772e..efc52e917b001 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 |