configs/tailnet: silence curl

This commit is contained in:
Aaron Bieber 2024-08-14 13:00:56 -06:00
parent 6fa9aed9e9
commit ada17fc6a5
No known key found for this signature in database

View File

@ -217,10 +217,10 @@ let
APIURL="https://api.tailscale.com/api/v2/tailnet/-/acl" APIURL="https://api.tailscale.com/api/v2/tailnet/-/acl"
TOKEN="$(cat ${config.sops.secrets.tailnet_acl_manager.path}):" TOKEN="$(cat ${config.sops.secrets.tailnet_acl_manager.path}):"
ERROR="$(${pkgs.curl}/bin/curl "$APIURL/validate" -u "$TOKEN" -d @${tailnetACLs} | $JQ -r .message)" ERROR="$(${pkgs.curl}/bin/curl "$APIURL/validate" -s -u "$TOKEN" -d @${tailnetACLs} | $JQ -r .message)"
if [ "$ERROR" = "null" ]; then if [ "$ERROR" = "null" ]; then
RESP="$(${pkgs.curl}/bin/curl "$APIURL" -u "$TOKEN" -d @${tailnetACLs} | $JQ -r .message)" RESP="$(${pkgs.curl}/bin/curl "$APIURL" -s -u "$TOKEN" -d @${tailnetACLs} | $JQ -r .message)"
if [ "$RESP" != "null" ]; then if [ "$RESP" != "null" ]; then
$PO -title "Failed to update TailNet!" -body "$RESP" $PO -title "Failed to update TailNet!" -body "$RESP"
fi fi