From b08c610a8f8c0680be6c1103989565f3fb1642ea Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Fri, 3 Oct 2025 22:14:51 -0600 Subject: [PATCH] Update script to function --- tools/astrocom_dynamic_ip.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/astrocom_dynamic_ip.sh b/tools/astrocom_dynamic_ip.sh index 1133948..92297a8 100644 --- a/tools/astrocom_dynamic_ip.sh +++ b/tools/astrocom_dynamic_ip.sh @@ -4,7 +4,7 @@ # Requires: curl # Configuration -API_KEY="your_api_key_here" # Replace with your AstroCom API Key! +API_KEY="Your ASTROCOM API Key" # Replace with your AstroCom API Key! @@ -16,7 +16,4 @@ if [[ -z "$CURRENT_IP" ]]; then fi echo "Current IP: $CURRENT_IP" # Update IP via AstroCom API PATCH https://astrocom.tel/api/v1/user/update; JSON body: {"server": "current_ip"} -RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" -X PATCH https://astrocom.tel/api/v1/user/update \ - -H "Content-Type: application/json" \ - -H "Authorization: Bearer $API_KEY" \ - -d "{\"server\": \"$CURRENT_IP\"}" \ No newline at end of file +curl -s -X PATCH https://astrocom.tel/api/v1/user/update -H "Content-Type: application/json" -H "Authorization: Bearer $API_KEY" -d "{\"server\": \"$CURRENT_IP\"}" \ No newline at end of file