Files
octavia/elements/haproxy-octavia/post-install.d/20-disable-default-haproxy
Michael Johnson e50ba48c1b Merge haproxy-octavia elements
Currently there are two haproxy-octavia elements, haproxy-octavia and
haproxy-octavia-ubuntu in the Octavia project.  The have minimal changes
between them, so this patch merges them into one element with a
backward compatible element left for haproxy-octavia-ubuntu.

Change-Id: I990802726d24e319988bfb614b3bf3fb560512b4
2017-11-09 09:09:01 -08:00

14 lines
263 B
Bash
Executable File

#!/bin/bash
set -eu
set -o pipefail
if [ "$DISTRO_NAME" == "ubuntu" ]; then
# Doing both here as just remove doesn't seem to work on xenial
update-rc.d haproxy disable || true
update-rc.d -f haproxy remove || true
else
chkconfig haproxy off
fi