Merge pull request #154655 from NixOS/backport-152766-to-release-21.11

[Backport release-21.11] nixos/elasticsearch: fix postStart to allow non-localhost listenAddress
This commit is contained in:
Kim Lindberger
2022-01-12 09:44:00 +01:00
committed by GitHub

View File

@@ -204,7 +204,7 @@ in
postStart = ''
# Make sure elasticsearch is up and running before dependents
# are started
while ! ${pkgs.curl}/bin/curl -sS -f http://localhost:${toString cfg.port} 2>/dev/null; do
while ! ${pkgs.curl}/bin/curl -sS -f http://${cfg.listenAddress}:${toString cfg.port} 2>/dev/null; do
sleep 1
done
'';