Merge pull request #152766 from ejpcmac/fix-elasticsearch-service

nixos/elasticsearch: fix postStart to allow non-localhost listenAddress
This commit is contained in:
Kim Lindberger 2022-01-11 22:16:16 +01:00 committed by GitHub
commit bd20b7f07f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
'';