mirror of
https://github.com/netweak/agent.git
synced 2024-12-16 21:46:58 -05:00
Update agent.sh
This commit is contained in:
parent
ec86e59367
commit
5274f12fa2
1 changed files with 2 additions and 2 deletions
4
agent.sh
4
agent.sh
|
@ -224,9 +224,9 @@ data_post="token=${auth[0]}&data=$(base "$version") $(base "$uptime") $(base "$s
|
||||||
# API request with automatic termination
|
# API request with automatic termination
|
||||||
if [ -n "$(command -v timeout)" ]
|
if [ -n "$(command -v timeout)" ]
|
||||||
then
|
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://beta.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://www.netweak.com/api/agent/report"
|
||||||
else
|
else
|
||||||
wget -q -o /dev/null -O /etc/netweak/log/agent.log -T 25 --post-data "$data_post" --no-check-certificate "https://beta.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://www.netweak.com/api/agent/report"
|
||||||
wget_pid=$!
|
wget_pid=$!
|
||||||
wget_counter=0
|
wget_counter=0
|
||||||
wget_timeout=30
|
wget_timeout=30
|
||||||
|
|
Loading…
Reference in a new issue