mysql: add nettools to path

The mysql_install_db command, called in preStart, needs the hostname command.

Changed files
+6
nixos
modules
services
databases
+6
nixos/modules/services/databases/mysql.nix
···
unitConfig.RequiresMountsFor = "${cfg.dataDir}";
preStart =
''
if ! test -e ${cfg.dataDir}/mysql; then
···
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