ha-remote-vpn-addon/rootfs/etc/services.d/haproxy/run
2024-01-01 17:32:37 +01:00

13 lines
358 B
Text
Executable file

#!/command/with-contenv bashio
if [ ! -e "/config/haproxy" ]
then
bashio::log.info "Initialize HAproxy configuration..."
rsync -a /srv/haproxy/ /config/haproxy/
bashio::log.info "done."
else
bashio::log.info "HAproxy configuration already initialized"
fi
bashio::log.info "Start Haproxy ... "
exec /usr/sbin/haproxy -f /config/haproxy/haproxy.cfg -db