Browse Source
fixed bad quoting in alert_gotify.sh
pull/3509/head
jamie
4 years ago
No known key found for this signature in database
GPG Key ID: 98D3272368C9138
1 changed files with
1 additions and
1 deletions
-
lgsm/functions/alert_gotify.sh
|
|
@ -42,7 +42,7 @@ EOF |
|
|
|
|
|
|
|
fn_print_dots "Sending Gotify alert" |
|
|
|
|
|
|
|
gotifysend=$(curl --connect-timeout 10 -sSL -H "{"X-Gotify-Key": "${gotifytoken}"}" -X POST -d "$(echo -n "$json" | jq -c .)" "${gotifywebhook}") |
|
|
|
gotifysend=$(curl --connect-timeout 10 -sSL -H "{X-Gotify-Key: ${gotifytoken}}" -X POST -d "$(echo -n "$json" | jq -c .)" "${gotifywebhook}") |
|
|
|
|
|
|
|
if [ -n "${gotifysend}" ]; then |
|
|
|
fn_print_ok_nl "Sending Gotify alert" |
|
|
|