octavia/elements/amphora-agent/post-install.d/12-enable-prometheus-proxy-systemd
Gregory Thiemonge 344d6d76ce Fix prometheus-proxy service name in Red Hat-based distros
The prometheus-proxy service is called octavia-prometheus-proxy in RDO's
RPMs [0].
Add a svc-map for the service name to fix the amphora-agent element for
these distros.

[0] https://review.rdoproject.org/r/c/openstack/octavia-distgit/+/44152

Partial-Bug: 1992668

Change-Id: Ie739cd582103d1aab3021c56654e395b5919358f
2022-10-13 09:48:17 +02:00

13 lines
191 B
Bash
Executable File

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
if [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
systemctl enable $(svc-map prometheus-proxy)
fi