diff options
author | Nathan Angelacos <nangel@alpinelinux.org> | 2015-02-12 20:12:05 +0000 |
---|---|---|
committer | Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> | 2015-02-12 21:23:48 +0100 |
commit | 4efa724e9e9deb9e9d7578475084729f708422db (patch) | |
tree | 5d0af0cc1710967975b5ca97abb0773c33601b92 /main/haproxy/haproxy.pre-install | |
parent | 66a49352fb7f5606831129cacabb03eae90b0103 (diff) | |
download | aports-4efa724e9e9deb9e9d7578475084729f708422db.tar.bz2 aports-4efa724e9e9deb9e9d7578475084729f708422db.tar.xz |
main/haproxy: version bump to 1.5.11
Note: haproxy now requires openssl as it supports SNI
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 + |