haproxy/files/haproxy.sh
Petr "Stone" Hracek a743904ab4 Update tests and fixing Makefile
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
2017-04-05 16:04:11 +02:00

14 lines
282 B
Bash
Executable file

#!/bin/bash
if [[ ! -z "${DEBUG_MODE}" ]]; then
rpm -q syslog-ng
if [[ $? -ne 0 ]]; then
dnf -y --setopt=tsflags=nodocs install syslog-ng && \
dnf -y clean all
syslog-ng
fi
fi
# Run haproxy binary
/usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg