PKGBUILDs/gitea/default/0002-Adjust-service-file-fo...

34 lines
1.0 KiB
Diff
Raw Normal View History

2018-08-27 22:18:56 +02:00
From 341499f12a729c9eeaf3740d052c2cce05ccc855 Mon Sep 17 00:00:00 2001
2017-06-16 22:51:17 +02:00
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
---
2018-08-27 22:18:56 +02:00
contrib/systemd/gitea.service | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
2017-06-16 22:51:17 +02:00
2018-06-10 20:43:02 +02:00
diff --git a/contrib/systemd/gitea.service b/contrib/systemd/gitea.service
2018-08-27 22:18:56 +02:00
index 387de14fa..53ed61490 100644
2018-06-10 20:43:02 +02:00
--- a/contrib/systemd/gitea.service
+++ b/contrib/systemd/gitea.service
@@ -16,12 +16,12 @@ After=network.target
2017-06-16 22:51:17 +02:00
#LimitNOFILE=65535
2018-06-10 20:43:02 +02:00
RestartSec=2s
2017-06-16 22:51:17 +02:00
Type=simple
-User=git
-Group=git
+User=gitea
+Group=gitea
2018-08-27 22:18:56 +02:00
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
2017-06-16 22:51:17 +02:00
Restart=always
2018-08-27 22:18:56 +02:00
-Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
2018-06-10 20:43:02 +02:00
+Environment=USER=gitea HOME=/var/lib/gitea GITEA_WORK_DIR=/var/lib/gitea
2018-08-27 22:18:56 +02:00
# If you want to bind Gitea to a port below 1024 uncomment
# the two values below
###
2017-06-16 22:51:17 +02:00
--
2018-08-27 22:18:56 +02:00
2.18.0
2017-06-16 22:51:17 +02:00