소스 검색

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.
Daniel Gibbs 1 개월 전
부모
커밋
a7186b8f7f
2개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      lgsm/config-default/config-lgsm/tf2cserver/_default.cfg
  2. 1 0
      lgsm/modules/alert_slack.sh

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

@@ -65,6 +65,16 @@ iftttalert="off"
 ifttttoken="accesstoken"
 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
 pushbulletalert="off"
 pushbullettoken="accesstoken"

+ 1 - 0
lgsm/modules/alert_slack.sh

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