14 lines
358 B
Text
14 lines
358 B
Text
|
#!/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
|