Browse Source

fix(alert_slack): add missing closing brace on section object

The 'section' block containing 'fields' and 'accessory' was missing its
closing '}' before EOF, producing malformed JSON and breaking all Slack
alerts silently (jq -c . would fail on the payload).

Also add missing ntfy alert settings to tf2cserver _default.cfg for
consistency with other server configs.
pull/4900/head
Daniel Gibbs 2 months ago
parent
commit
a7186b8f7f
Failed to extract signature
  1. 10
      lgsm/config-default/config-lgsm/tf2cserver/_default.cfg
  2. 1
      lgsm/modules/alert_slack.sh

10
lgsm/config-default/config-lgsm/tf2cserver/_default.cfg

@ -65,6 +65,16 @@ iftttalert="off"
ifttttoken="accesstoken" ifttttoken="accesstoken"
iftttevent="linuxgsm_alert" iftttevent="linuxgsm_alert"
# ntfy Alerts | https://docs.linuxgsm.com/alerts/ntfy
ntfyalert="off"
ntfytopic="LinuxGSM"
ntfyserver="https://ntfy.sh"
ntfytoken=""
ntfyusername=""
ntfypassword=""
ntfypriority=""
ntfytags=""
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet # Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
pushbulletalert="off" pushbulletalert="off"
pushbullettoken="accesstoken" pushbullettoken="accesstoken"

1
lgsm/modules/alert_slack.sh

@ -60,6 +60,7 @@ json=$(
"image_url": "${alerticon}", "image_url": "${alerticon}",
"alt_text": "LinuxGSM game icon" "alt_text": "LinuxGSM game icon"
} }
}
EOF EOF
) )

Loading…
Cancel
Save