commit:     020d49bd6767b308584733b6dcd88e4cc9ee7149
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 25 08:49:52 2016 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Apr 25 08:51:38 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=020d49bd

app-emulation/docker-registry: fix init script to allow user/group override

Package-Manager: portage-2.2.28

 app-emulation/docker-registry/files/registry.initd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-emulation/docker-registry/files/registry.initd 
b/app-emulation/docker-registry/files/registry.initd
index 4df83f3..eaf2789 100644
--- a/app-emulation/docker-registry/files/registry.initd
+++ b/app-emulation/docker-registry/files/registry.initd
@@ -5,8 +5,8 @@
 
 description="Docker Registry 2.0"
 pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
-user=${SVCNAME}
-group=${SVCNAME}
+user=${user:-${SVCNAME}}
+group=${group:-${SVCNAME}}
 
 command="/usr/libexec/docker-${SVCNAME}/${SVCNAME}"
 command_args="${command_args:-serve /etc/docker/registry/config.yml}"

Reply via email to