debian/tests/start-air
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | cat <<EOF > /etc/alertmanager-irc-relay.yml |
| 6 | http_host: localhost |
| 7 | http_port: 8000 |
| 8 | |
| 9 | irc_host: localhost |
| 10 | irc_port: 6667 |
| 11 | irc_use_ssl: no |
| 12 | EOF |
| 13 | |
| 14 | service alertmanager-irc-relay restart |
| 15 | |
| 16 | for i in $(seq 1 5); do |
| 17 | if curl -s http://localhost:8000; then |
| 18 | exit 0 |
| 19 | fi |
| 20 | sleep 1 |
| 21 | done |
| 22 | |
| 23 | exit 1 |