34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
From 341499f12a729c9eeaf3740d052c2cce05ccc855 Mon Sep 17 00:00:00 2001
|
|
From: Martchus <martchus@gmx.net>
|
|
Date: Sun, 19 Mar 2017 18:04:48 +0100
|
|
Subject: [PATCH 2/2] Adjust service file for Arch Linux package
|
|
|
|
---
|
|
contrib/systemd/gitea.service | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/contrib/systemd/gitea.service b/contrib/systemd/gitea.service
|
|
index 387de14fa..53ed61490 100644
|
|
--- a/contrib/systemd/gitea.service
|
|
+++ b/contrib/systemd/gitea.service
|
|
@@ -16,12 +16,12 @@ After=network.target
|
|
#LimitNOFILE=65535
|
|
RestartSec=2s
|
|
Type=simple
|
|
-User=git
|
|
-Group=git
|
|
+User=gitea
|
|
+Group=gitea
|
|
WorkingDirectory=/var/lib/gitea/
|
|
-ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
|
|
+ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
|
|
Restart=always
|
|
-Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
|
|
+Environment=USER=gitea HOME=/var/lib/gitea GITEA_WORK_DIR=/var/lib/gitea
|
|
# If you want to bind Gitea to a port below 1024 uncomment
|
|
# the two values below
|
|
###
|
|
--
|
|
2.18.0
|
|
|