nixos/deconz: fix curl redirect option in postStart

It should be curl -L (follow redirects), not curl -l (FTP directory
listing option). I know because it's my mistake.

Fixes: d4b989cafc ("nixos/deconz: delay signalling service readiness until it's actually up")
This commit is contained in:
Bjørn Forsman 2024-04-18 19:15:49 +02:00
parent e8d09f9978
commit c7ab550bbc

View file

@ -95,7 +95,7 @@ in
''; '';
postStart = '' postStart = ''
# Delay signalling service readiness until it's actually up. # Delay signalling service readiness until it's actually up.
while ! "${lib.getExe pkgs.curl}" -sSfl -o /dev/null "http://${cfg.listenAddress}:${toString cfg.httpPort}"; do while ! "${lib.getExe pkgs.curl}" -sSfL -o /dev/null "http://${cfg.listenAddress}:${toString cfg.httpPort}"; do
echo "Waiting for TCP port ${toString cfg.httpPort} to be open..." echo "Waiting for TCP port ${toString cfg.httpPort} to be open..."
sleep 1 sleep 1
done done