Martin Mágr 1abff9af09 Use correct path in healthcheck scripts
Currently /usr/share/tripleo-common is used in healthcheck scripts,
but only /usr/share/openstack-tripleo-common is available in container
images

Closes-Bug: #1710629
Change-Id: Id7d169cfd34bf2a45e9bff0e389e77189cb774d7
2017-08-14 15:56:56 +02:00

15 lines
439 B
Bash
Executable File

#!/bin/sh
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
conf=/etc/swift/proxy-server.conf
if ! crudini --get $conf pipeline:main pipeline | grep -q healthcheck; then
echo "healthcheck is not available" >&2
exit 0
fi
bind_host=$(get_config_val $conf DEFAULT bind_ip 127.0.0.1)
bind_port=$(get_config_val $conf DEFAULT bind_port 8080)
healthcheck_curl http://${bind_host}:${bind_port}/healthcheck