correction webhook

This commit is contained in:
fab
2026-07-05 19:38:36 +02:00
parent cb24266167
commit c8e7cebfd6
+11 -5
View File
@@ -858,11 +858,17 @@ EOF" | tee -a "${CMD_MSG}"
echo " # on envoie la confirmation d'inscription sur l'agora " | tee -a "${CMD_MSG}" echo " # on envoie la confirmation d'inscription sur l'agora " | tee -a "${CMD_MSG}"
#echo "docker exec -i mattermostServ bin/mmctl post create kaz:Creation-Comptes --message \"${MAIL_KAZ}\"" | tee -a "${CMD_MSG}" #echo "docker exec -i mattermostServ bin/mmctl post create kaz:Creation-Comptes --message \"${MAIL_KAZ}\"" | tee -a "${CMD_MSG}"
cat <<'EOF' | tee -a "${CMD_MSG}"
curl -i -X POST -H 'Content-Type: application/json' \ #pas réussi à le mettre dans CMD_MSG :(, je balance direct)
-d '{"channel": "creation-comptes","text": "${MAIL_KAZ}"}' \ payload=$(jq -n \
https://${URL_AGORA}/hooks/${token_webhook} --arg channel "creation-comptes" \
EOF --arg text "$MAIL_KAZ" \
'{channel: $channel, text: $text}')
curl -i -X POST \
-H "Content-Type: application/json" \
-d "$payload" \
"https://${URL_AGORA}/hooks/${token_webhook}"
# fin des inscriptions # fin des inscriptions
done <<< "${ALL_LINES}" done <<< "${ALL_LINES}"