diff options
Diffstat (limited to 'main/haproxy/haproxy.pre-install')
-rw-r--r--[l---------] | main/haproxy/haproxy.pre-install | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/main/haproxy/haproxy.pre-install b/main/haproxy/haproxy.pre-install index a5f553dcf0..33e0164aff 120000..100644 --- a/main/haproxy/haproxy.pre-install +++ b/main/haproxy/haproxy.pre-install @@ -1 +1,12 @@ -haproxy.pre-upgrade
\ No newline at end of file +#!/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 + |