]> git.immae.eu Git - github/fretlink/ansible-clever.git/blob - files/clever-set-drain.sh
Bump clever waiting time to 1 hour
[github/fretlink/ansible-clever.git] / files / clever-set-drain.sh
1 #!/usr/bin/env bash
2
3 set -e
4
5 function checkDrain {
6 clever drain | grep "${SYSLOG_UDP_SERVER}"
7 }
8
9 function setDrain {
10 clever drain create UDPSyslog "udp://${SYSLOG_UDP_SERVER}"
11 }
12
13 checkDrain || setDrain