aboutsummaryrefslogblamecommitdiffhomepage
path: root/files/clever-set-drain.sh
blob: 405cb28ba1987d28ce04e85a77fa8f2affd8d9c7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                            
#!/bin/bash -e

function checkDrain {
  clever drain | grep "${SYSLOG_UDP_SERVER}"
}

function setDrain {
  clever drain create UDPSyslog "udp://${SYSLOG_UDP_SERVER}"
}

checkDrain || setDrain