summaryrefslogtreecommitdiffstats
path: root/testing/haproxy/haproxy.pre-upgrade
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-09-11 11:01:31 +0300
committerTimo Teräs <timo.teras@iki.fi>2012-09-11 11:01:31 +0300
commitd8055a1c37252869fbc13c2fda365e17bbdecd8b (patch)
tree2fcf239ae3ecaaad761800ea388d40f147eed829 /testing/haproxy/haproxy.pre-upgrade
parent22f952fbfc4aba95801818960d76f487ff8bb608 (diff)
downloadaports-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-upgrade12
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
+