kolla/docker/common/haproxy/config-external.sh
Sam Yaple b9312c63e1 Remove config-internal for haproxy
Change-Id: Ife2ef3eb15f8435f29ffb4fb5912d00f68de0ff7
Partially-implements: blueprint remove-config-internal
2015-08-07 18:43:18 +00:00

11 lines
208 B
Bash

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