Commit 46a35a60 authored by Natanael Copa's avatar Natanael Copa

main/haproxy: allow user override config file location

Use HAPROXY_CONF=/etc/mylocation.cfg in /etc/conf.d/haproxy

ref #1339
parent 39fe9fe3
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=haproxy
pkgver=1.4.18
pkgrel=3
pkgrel=4
pkgdesc="A TCP/HTTP reverse proxy for high availability environments"
url="http://haproxy.1wt.eu"
arch="all"
......@@ -27,4 +27,4 @@ package() {
}
md5sums="4ac88bb1a76c4b84ed4f6131183bedbe haproxy-1.4.18.tar.gz
572195d08dbb1c198b8edade46681b49 haproxy.initd"
0891c7f7b98899b7e7bf767ae92b652e haproxy.initd"
......@@ -7,7 +7,7 @@ extra_commands="checkconfig"
extra_started_commands="reload"
command=/usr/sbin/haproxy
CONFFILE=/etc/${SVCNAME}.cfg
CONFFILE=${HAPROXY_CONF:-/etc/${SVCNAME}.cfg}
PIDFILE=/var/run/${SVCNAME}.pid
depend() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment