mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 11:20:10 +00:00
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:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user