aports/main/haproxy/haproxy.pre-install
Nathan Angelacos 4efa724e9e main/haproxy: version bump to 1.5.11
Note: haproxy now requires openssl as it supports SNI
2015-02-12 21:23:48 +01:00

13 lines
299 B
Bash

#!/bin/sh
addgroup haproxy 2>/dev/null
adduser -S -H -h /var/lib/haproxy -s /bin/false -D \
-G haproxy haproxy 2>/dev/null
# move config to new location
if [ -e /etc/haproxy.cfg ] && ! [ -e /etc/haproxy/haproxy.cfg ]; then
mkdir -p /etc/haproxy
mv /etc/haproxy.cfg /etc/haproxy/haproxy.cfg
fi