cbd42ca6e9
Updated build.py to reflect this change. Deprecate --template option and make it a noop. Change-Id: I7cd98d1ee684a4c64984a49597159868152683b2 Partially-Implements: blueprint remove-docker-dir
13 lines
393 B
Bash
Executable File
13 lines
393 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CURRENT_CONFIG_HASH=$(sha1sum /etc/haproxy/haproxy.cfg | cut -f1 -d' ')
|
|
NEW_CONFIG_HASH=$(sha1sum /opt/kolla/haproxy/haproxy.cfg | cut -f1 -d' ')
|
|
|
|
if [[ $CURRENT_CONFIG_HASH != $NEW_CONFIG_HASH ]]; then
|
|
changed=changed
|
|
source /opt/kolla/config-external.sh
|
|
/usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -sf $(cat /run/haproxy.pid)
|
|
fi
|
|
|
|
echo $changed
|