Merge pull request #9696 from basvandijk/mysql-hostname-fix

Bring hostname into scope needed by mysql_install_db
This commit is contained in:
Arseniy Seroka 2015-09-08 13:27:48 +03:00
commit 0236bd6590

View File

@ -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