commit: b255b7ea7c7f52b40e3012daf5530d7c1152274f
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 25 21:14:28 2016 +0000
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Sun Dec 25 21:14:28 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b255b7ea
www-apps/gitea: Fix initscript
Package-Manager: portage-2.3.3
www-apps/gitea/files/gitea.initd | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/www-apps/gitea/files/gitea.initd b/www-apps/gitea/files/gitea.initd
index a9aaac7..44cb542 100644
--- a/www-apps/gitea/files/gitea.initd
+++ b/www-apps/gitea/files/gitea.initd
@@ -5,13 +5,14 @@
description="Gitea, a self-hosted Git service"
pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
-user=${user:-${SVCNAME}}
-group=${group:-${SVCNAME}}
+user=${user:-git}
+group=${group:-git}
command="/usr/bin/gitea web"
command_args="${command_args:--config /var/lib/gitea/conf/app.ini}"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
+ -e GITEA_CUSTOM=/var/lib/gitea
--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"