mysql: add nettools to path

The mysql_install_db command, called in preStart, needs the hostname command.
This commit is contained in:
Bas van Dijk 2015-09-07 17:05:56 +02:00
parent d4f7bf9c29
commit 1f1e02daad

View File

@ -167,6 +167,12 @@ in
unitConfig.RequiresMountsFor = "${cfg.dataDir}"; unitConfig.RequiresMountsFor = "${cfg.dataDir}";
path = [
# Needed for the mysql_install_db command in the preStart script
# which calls the hostname command.
pkgs.nettools
];
preStart = preStart =
'' ''
if ! test -e ${cfg.dataDir}/mysql; then if ! test -e ${cfg.dataDir}/mysql; then