Actualiser run.sh

Signed-off-by: thomas <contact@thomasmlg.fr>
This commit is contained in:
2026-03-10 21:47:17 +01:00
parent 311a86893b
commit 84462c1343

12
run.sh
View File

@@ -31,15 +31,15 @@ send_matrix() {
ROOM_ID="!qMftKWAtfFIQzithEu:malgouyres"
ACCESS_TOKEN="syt_YWRtaW4_HyZwdmZXmngmUNGdxgTV_0tb2UI"
curl -s -X POST \
local payload
payload="$(jq -Rn --arg msg "$message" '{msgtype:"m.text", body:$msg}')"
curl -sS -X POST \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d "{
\"msgtype\":\"m.text\",
\"body\":\"${message}\"
}" \
-d "$payload" \
"${MATRIX_URL}/_matrix/client/r0/rooms/${ROOM_ID}/send/m.room.message" \
>/dev/null 2>&1 || true
>>"$RUN_LOG" 2>&1
}
send_matrix "🚀 Début de la mise à jour