From 8eb51bf583f30c559633314b40823841a0367f37 Mon Sep 17 00:00:00 2001 From: didier Date: Sun, 22 Nov 2026 16:48:39 +0100 Subject: [PATCH] correctif equipe --- bin/interoPaheko.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/interoPaheko.sh b/bin/interoPaheko.sh index 7fc4aaf..93a0278 100755 --- a/bin/interoPaheko.sh +++ b/bin/interoPaheko.sh @@ -56,6 +56,7 @@ PostMattermost() { . $KAZ_KEY_DIR/env-mattermostAdmin PostM=$1 CHANNEL=$2 + EQUIPE=kaz TEAMID=$(curl -s -H "Authorization: Bearer ${mattermost_token}" "${URL_AGORA_API}/teams/name/${EQUIPE}" | jq -r .id ) CHANNELID=$(curl -s -H "Authorization: Bearer ${mattermost_token}" ${URL_AGORA_API}/teams/${TEAMID}/channels/name/${CHANNEL} | jq -r .id ) curl -s i-X POST -i -H "Authorization: Bearer ${mattermost_token}" -d "{\"channel_id\":\"${CHANNELID}\",\"message\":\"${PostM}\"}" "${URL_AGORA_API}/posts" >/dev/null 2>&1