2017-09-20

LetsEncrypt SSL CERTIFICATE auto-renew

#/opt/script/haproxy-checkconfig.sh
#LastUpdate: 11:31 2017.03.20
###############################
HAPROXY_BIN_FILE="/opt/setup/haproxy-1.6.7/haproxy"

#HAPROXY_CONFIG_FILE="/opt/script/haproxy.config/haproxy-ssl.cfg"

HAPROXY_CONFIG_FILE="/etc/haproxy/haproxy.cfg"
clear
echo "###############################"
$HAPROXY_BIN_FILE -v | grep  version
echo "###############################"
echo "CHECK HAPROXY CONFIG: "
$HAPROXY_BIN_FILE -c -f $HAPROXY_CONFIG_FILE
#END