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:
Denis Reva
2020-09-11 21:09:12 +05:00
parent e5ee6d1c11
commit 1fc210e2a9
2 changed files with 3 additions and 6 deletions

View File

@@ -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

View File

@@ -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"