dad3c0ccf1
Migrating install-packages commands to package-installs-* scripts where possible. This patch is broken up into multiple parts to minimize impact and review overhead. Change-Id: Idd1be32149e7238d53d04a34170c5029dda83f1f
11 lines
302 B
Bash
Executable File
11 lines
302 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
[ -d /var/lib/haproxy ] || install -d -D -m 0755 -o root -g root /var/lib/haproxy
|
|
|
|
# haproxy service has to be explicitly enabled in /etc/default/haproxy on ubuntu/debian systems
|
|
if [ -f /etc/default/haproxy ]; then
|
|
sed -i -e 's/ENABLED=0/ENABLED=1/' /etc/default/haproxy
|
|
fi
|