1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/testing/haproxy/haproxy.pre-upgrade
Timo Teräs d8055a1c37 testing/haproxy: fork from main/haproxy and upgrade to 1.5-dev12
Development version with full, native support for SSL!
2012-09-11 11:01:31 +03:00

12 lines
299 B
Bash

#!/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