summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2016-12-25 22:14:28 +0100
committerManuel Rüger <mrueg@gentoo.org>2016-12-25 22:14:28 +0100
commitb255b7ea7c7f52b40e3012daf5530d7c1152274f (patch)
treea4eb33b0967aa1b269f2c4f28a76c86701265583 /www-apps
parentwww-apps/gitea: Use git user by default (diff)
downloadgentoo-b255b7ea7c7f52b40e3012daf5530d7c1152274f.tar.gz
gentoo-b255b7ea7c7f52b40e3012daf5530d7c1152274f.tar.bz2
gentoo-b255b7ea7c7f52b40e3012daf5530d7c1152274f.zip
www-apps/gitea: Fix initscript
Package-Manager: portage-2.3.3
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/gitea/files/gitea.initd5
1 files changed, 3 insertions, 2 deletions
diff --git a/www-apps/gitea/files/gitea.initd b/www-apps/gitea/files/gitea.initd
index a9aaac7ee378..44cb5421fabb 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"