consul: Create directories/user
This commit is contained in:
parent
30924b8729
commit
e94e437b60
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ -r conf ] && . ./conf
|
[ -r conf ] && . ./conf
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec consul agent -config-dir=/etc/consul.d
|
exec chpst -u _consul:_consul consul agent -config-dir=/etc/consul.d
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'consul'
|
# Template file for 'consul'
|
||||||
pkgname=consul
|
pkgname=consul
|
||||||
version=1.15.2
|
version=1.15.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path="github.com/hashicorp/consul"
|
go_import_path="github.com/hashicorp/consul"
|
||||||
_git_commit=5e08e229dbdaed5adf3ca99afe9df247c51507da
|
_git_commit=5e08e229dbdaed5adf3ca99afe9df247c51507da
|
||||||
|
@ -12,6 +12,9 @@ license="MPL-2.0"
|
||||||
homepage="https://www.consul.io/"
|
homepage="https://www.consul.io/"
|
||||||
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
||||||
checksum=ce5e6666c9bd3ee8dcd60b2ed6e082ab9893fda3c0a2218add649c197f34f2f3
|
checksum=ce5e6666c9bd3ee8dcd60b2ed6e082ab9893fda3c0a2218add649c197f34f2f3
|
||||||
|
system_accounts="_consul"
|
||||||
|
make_dirs="/etc/consul.d 0755 _consul _consul
|
||||||
|
/var/lib/consul 0750 _consul _consul"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
Loading…
Reference in New Issue