diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-09-11 11:01:31 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-09-11 11:01:31 +0300 |
commit | d8055a1c37252869fbc13c2fda365e17bbdecd8b (patch) | |
tree | 2fcf239ae3ecaaad761800ea388d40f147eed829 /testing/haproxy/haproxy.pre-upgrade | |
parent | 22f952fbfc4aba95801818960d76f487ff8bb608 (diff) | |
download | aports-d8055a1c37252869fbc13c2fda365e17bbdecd8b.tar.bz2 aports-d8055a1c37252869fbc13c2fda365e17bbdecd8b.tar.xz |
testing/haproxy: fork from main/haproxy and upgrade to 1.5-dev12
Development version with full, native support for SSL!
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 000000000..33e0164af --- /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 + |