rpc_backend: Conditionally enable rabbit on fedora

Change 4d8c03a3 added logic to enable rabbit on Fedora/CentOS systems
whether or not rabbit is enabled. This corrects that to only enable
rabbit when it is configured as such.

Change-Id: I270e79ff989176770d65df1ac0ac4e2c4382bb9a
Signed-off-by: Kyle Mestery <mestery@mestery.com>
This commit is contained in:
Kyle Mestery 2016-01-07 16:46:37 -06:00
parent a5ea08b752
commit 75633266c8

View File

@ -47,9 +47,9 @@ function install_rpc_backend {
if is_service_enabled rabbit; then
# Install rabbitmq-server
install_package rabbitmq-server
fi
if is_fedora; then
sudo systemctl enable rabbitmq-server
if is_fedora; then
sudo systemctl enable rabbitmq-server
fi
fi
}