
Current patch fixes shell issues in LBaaS apps reported by test run: tox -e shellcheck All LB related scripts were fixed according command output. Change-Id: Ia24f2ba25d7818cb05d064a9fc7f5f4617f714d8
16 lines
292 B
Bash
Executable File
16 lines
292 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sudo add-apt-repository ppa:vbernat/haproxy-1.5 -y
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y haproxy
|
|
|
|
# Enabling HAProxy.
|
|
sudo sed -i 's/^ENABLED=.*/ENABLED=1/' /etc/default/haproxy
|
|
|
|
sudo chown -R "$USER:$USER" /etc/haproxy
|
|
|
|
# Starting HAProxy.
|
|
#sudo service haproxy restart
|
|
|