18 lines
549 B
Bash
Executable File
18 lines
549 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
DISTRO=`lsb_release -is`
|
|
|
|
install-packages openstack-neutron openstack-neutron-ml2
|
|
|
|
if [[ "RedHatEnterpriseServer CentOS Fedora" =~ "$DISTRO" ]]; then
|
|
ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
|
|
|
|
# Packaged neutron is providing a requires.txt which breaks dependencies at
|
|
# runtime. See:
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1057615
|
|
rm -f /usr/lib/python2.7/site-packages/neutron-*.egg-info/requires.txt
|
|
fi
|
|
os-svc-daemon -i "$NEUTRON_VENV_DIR" -n neutron-server -u neutron
|