1
0
Fork 0

Update README to support swarm

This commit is contained in:
Joao Gilberto Magalhaes 2019-07-19 00:04:55 -05:00
parent 7e2b6f0f01
commit 8d7723e415
3 changed files with 13 additions and 29 deletions

View file

@ -6,6 +6,7 @@ RELOAD="true"
if [[ "$DISCOVER" == "static" ]]; then
CONTROL_FILE="/etc/haproxy/haproxy.cfg"
touch ${CONTROL_FILE}
cp ${CONTROL_FILE} ${CONTROL_FILE}.old
python3 static.py /etc/haproxy/easyconfig.yml > ${CONTROL_FILE}
else