From 6fbb83654c2d396853c4c270fd312d8ac3c3be51 Mon Sep 17 00:00:00 2001 From: Lucas Decrock Date: Wed, 7 Aug 2019 08:46:46 +0000 Subject: [PATCH] Replaced api url --- agent.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent.sh b/agent.sh index b55f895..cc8aa7e 100644 --- a/agent.sh +++ b/agent.sh @@ -4,7 +4,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # Agent version -version="1.0.0" +version="1.1.0" # API Token if [ -f /etc/netweak/token.conf ] @@ -224,9 +224,9 @@ data_post="token=${auth[0]}&data=$(base "$version") $(base "$uptime") $(base "$s # API request with automatic termination if [ -n "$(command -v timeout)" ] then - timeout -s SIGKILL 30 wget -q -o /dev/null -O /etc/netweak/log/agent.log -T 25 --post-data "$data_post" --no-check-certificate "https://www.netweak.com/api/agent/report" + timeout -s SIGKILL 30 wget -q -o /dev/null -O /etc/netweak/log/agent.log -T 25 --post-data "$data_post" --no-check-certificate "https://api.netweak.com/agent/report" else - wget -q -o /dev/null -O /etc/netweak/log/agent.log -T 25 --post-data "$data_post" --no-check-certificate "https://www.netweak.com/api/agent/report" + wget -q -o /dev/null -O /etc/netweak/log/agent.log -T 25 --post-data "$data_post" --no-check-certificate "https://api.netweak.com/agent/report" wget_pid=$! wget_counter=0 wget_timeout=30