configs/tailnet: silence curl
This commit is contained in:
parent
6fa9aed9e9
commit
ada17fc6a5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user