blob: fa9083dc4139e769dc6c20d1d5a73e7d238e0545 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
addgroup haproxy 2>/dev/null
adduser -S -H -h /usr/share/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
|