Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

22 wiersze
628 B

  1. #!/bin/sh
  2. # Shows the bots Meowlnir knows about, together with their management rooms, protected rooms and watched policy lists.
  3. #
  4. # Usage: meowlnir-bots
  5. set -eu
  6. BIN_PATH='{{ matrix_bot_meowlnir_bin_path }}'
  7. CONTAINER_NAME='matrix-bot-meowlnir'
  8. response="$("$BIN_PATH/meowlnir-api" GET /_meowlnir/v1/bots)"
  9. status="$(printf '%s\n' "$response" | tail -n 1)"
  10. body="$(printf '%s\n' "$response" | sed '$d')"
  11. if [ "$status" != '200' ]; then
  12. echo "Meowlnir answered with HTTP $status:" >&2
  13. echo "$body" >&2
  14. exit 1
  15. fi
  16. printf '%s\n' "$body" | {{ devture_systemd_docker_base_host_command_docker }} exec -i "$CONTAINER_NAME" jq .