aports/main/haproxy/haproxy.pre-upgrade
2013-09-04 11:38:23 +00:00

13 lines
302 B
Bash

#!/bin/sh
addgroup haproxy 2>/dev/null
adduser -S -H -h /var/lib/haproxy -s /sbin/nologin -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