www-apps/gitea: bump to 1.7.1
Merging with @xdch47 work + remove GITEA_CUSTOM overwrite. Package-Manager: Portage-2.3.51, Repoman-2.3.11
This commit is contained in:
parent
6632699364
commit
54a8bc41f9
5 changed files with 15 additions and 44 deletions
|
|
@ -1,24 +0,0 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Gitea, a self-hosted Git service"
|
||||
pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
|
||||
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"
|
||||
|
||||
depend() {
|
||||
need net mysql
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 2016-2018 Gentoo Foundation
|
||||
# Copyright 2016-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Gitea, a self-hosted Git service"
|
||||
|
|
@ -11,7 +11,8 @@ 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_WORK_DIR=/var/lib/gitea
|
||||
-e GITEA_WORK_DIR=${GITEA_WORK_DIR:-/var/lib/gitea} \
|
||||
-e GITEA_CUSTOM=${GITEA_CUSTOM:-/var/lib/gitea/custom} \
|
||||
--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
|
||||
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[Unit]
|
||||
Description=Gitea service
|
||||
Documentation=https://gitea.io
|
||||
Documentation=https://docs.gitea.io/
|
||||
|
||||
AssertPathIsDirectory=/var/lib/gitea
|
||||
AssertPathIsReadWrite=/var/lib/gitea
|
||||
|
|
@ -8,13 +8,15 @@ AssertPathIsReadWrite=/var/lib/gitea
|
|||
After=network.target
|
||||
Requires=network.target
|
||||
After=mysqld.service
|
||||
Requires=mysqld.service
|
||||
After=postgresql.service
|
||||
After=memcached.service
|
||||
After=redis.service
|
||||
|
||||
[Service]
|
||||
User=git
|
||||
Group=git
|
||||
|
||||
Environment="GITEA_CUSTOM=/var/lib/gitea"
|
||||
Environment="GITEA_WORK_DIR=/var/lib/gitea"
|
||||
WorkingDirectory=/var/lib/gitea
|
||||
ExecStart=/usr/bin/gitea web -c /var/lib/gitea/conf/app.ini
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue