Skip to content

Commit

Permalink
nixos/deconz: fix curl redirect option in postStart
Browse files Browse the repository at this point in the history
It should be curl -L (follow redirects), not curl -l (FTP directory
listing option). I know because it's my mistake.

Fixes: d4b989c ("nixos/deconz: delay signalling service readiness until it's actually up")
  • Loading branch information
bjornfor committed Apr 20, 2024
1 parent e8d09f9 commit c7ab550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/deconz.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ in
'';
postStart = ''
# 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..."
sleep 1
done
Expand Down

0 comments on commit c7ab550

Please sign in to comment.