mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
www-apps/gogs: systemd fix
Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Denis Reva <denis7774@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@ Requires=network.target
|
||||
|
||||
[Service]
|
||||
User=gogs
|
||||
Group=gogs
|
||||
Group=git
|
||||
|
||||
Environment="GOGS_WORK_DIR=/var/lib/gogs"
|
||||
Environment="GOGS_CUSTOM=/etc/gogs"
|
||||
@@ -21,4 +21,4 @@ ExecStart=/usr/bin/gogs web -c /etc/gogs/conf/app.ini
|
||||
|
||||
Restart=always
|
||||
PrivateTmp=true
|
||||
Nice=5
|
||||
Nice=5
|
||||
|
||||
@@ -487,10 +487,7 @@ src_install() {
|
||||
# Install binary
|
||||
dobin gogs
|
||||
# Prepare systemd init scripts and install it
|
||||
cp "${FILESDIR}/systemd/${PN}.service" "${T}/${PN}.service" || die
|
||||
use mysql && enable_systemd_dep mysqld
|
||||
use postgres && enable_systemd_dep postgresql
|
||||
systemd_dounit "${T}/${PN}.service"
|
||||
systemd_dounit "${FILESDIR}/systemd/${PN}.service"
|
||||
# Install OpenRC init files
|
||||
doconfd "${FILESDIR}/gogs-confd"
|
||||
doinitd "${FILESDIR}/gogs-initd"
|
||||
|
||||
Reference in New Issue
Block a user