mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 14:56:46 +02:00
13 lines
323 B
Bash
13 lines
323 B
Bash
#!/bin/sh
|
|
|
|
addgroup -S haproxy 2>/dev/null
|
|
adduser -S -D -H -h /var/lib/haproxy -s /sbin/nologin \
|
|
-G haproxy -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
|
|
|
|
exit 0
|