Sergey Kraynev 9bed165c30 Fix shellcheck errors for LBaaS apps
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
2016-08-01 15:12:45 +03:00

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