diff options
Diffstat (limited to 'testing/haproxy/haproxy.pre-upgrade')
-rw-r--r-- | testing/haproxy/haproxy.pre-upgrade | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/haproxy/haproxy.pre-upgrade b/testing/haproxy/haproxy.pre-upgrade new file mode 100644 index 0000000000..33e0164aff --- /dev/null +++ b/testing/haproxy/haproxy.pre-upgrade @@ -0,0 +1,12 @@ +#!/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 + |