Files
kolla-ansible/docker/common/haproxy/config-external.sh
Michal Jastrzebski (inc0) 38bed674bd HAProxy container
This commit consists HAProxy container. It only supports config-external
as this requires orchiestration.

Change-Id: I0af28be4f3d4aa40c418f15c40c45630d0fd7c8d
Partially-implements: blueprint haproxy-container
2015-07-21 15:32:39 +02:00

12 lines
220 B
Bash
Executable File

#!/bin/bash
SOURCE="/opt/kolla/haproxy/haproxy.cfg"
TARGET="/etc/haproxy/haproxy.cfg"
OWNER="root"
if [[ -f "$SOURCE" ]]; then
rm $TARGET
cp $SOURCE $TARGET
chown ${OWNER}: $TARGET
chmod 0644 $TARGET
fi