ha-remote-vpn-addon/rootfs/etc/services.d/haproxy/run

14 lines
358 B
Text
Raw Normal View History

2024-01-01 17:25:46 +01:00
#!/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