Browse Source

added back curl options

pull/3509/head
jamie 4 years ago
parent
commit
1ea0699643
No known key found for this signature in database GPG Key ID: 98D3272368C9138
  1. 2
      lgsm/functions/alert_gotify.sh

2
lgsm/functions/alert_gotify.sh

@ -10,7 +10,7 @@ content=(message="${alertsubject}, ${servername}, ${alertbody}. More info: ${ale
fn_print_dots "Sending Gotify alert"
gotifysend=$(curl "$gotifywebhook"?token="$gotifytoken" -F "title=LinuxGSM" -F "$content" -F "priority=5")
gotifysend=$(curl --connect-timeout 10 -sSL "$gotifywebhook"?token="$gotifytoken" -F "title=LinuxGSM" -F "$content" -F "priority=5")
if [ -n "${gotifysend}" ]; then
fn_print_ok_nl "Sending Gotify alert"

Loading…
Cancel
Save