nixos/syncthing: make it easier to debug incorrect IDs

In case of an incorrect ID, the behavior of this script
is quite tricky. See:

https://github.com/NixOS/nixpkgs/issues/326704#issuecomment-2730819822

for more info.
This commit is contained in:
Dawid Ciężarkiewicz
2025-03-18 19:10:10 +01:00
committed by Bjørn Forsman
parent a8b8f8f8c7
commit 07a3793105
@@ -121,6 +121,7 @@ let
'[.[].${s.GET_IdAttrName}] - $new_ids | .[]'
)"
for id in ''${stale_${conf_type}_ids}; do
>&2 echo "Deleting stale device: $id"
curl -X DELETE ${s.baseAddress}/$id
done
''