35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
From 6c229c932878e189e3a785c337a1c5d1cdbea2c3 Mon Sep 17 00:00:00 2001
|
|
From: Martchus <martchus@gmx.net>
|
|
Date: Sun, 19 Mar 2017 18:04:48 +0100
|
|
Subject: [PATCH 2/4] Adjust service file for Arch Linux package
|
|
|
|
---
|
|
scripts/systemd/gogs.service | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/scripts/systemd/gogs.service b/scripts/systemd/gogs.service
|
|
index 9f105bf8e..07ffa1f66 100644
|
|
--- a/scripts/systemd/gogs.service
|
|
+++ b/scripts/systemd/gogs.service
|
|
@@ -12,12 +12,12 @@ After=mariadb.service mysqld.service postgresql.service memcached.service redis.
|
|
#LimitMEMLOCK=infinity
|
|
#LimitNOFILE=65535
|
|
Type=simple
|
|
-User=git
|
|
-Group=git
|
|
-WorkingDirectory=/home/git/gogs
|
|
-ExecStart=/home/git/gogs/gogs web
|
|
+User=gogs
|
|
+Group=gogs
|
|
+WorkingDirectory=/var/lib/gogs
|
|
+ExecStart=/usr/bin/gogs web --config /etc/gogs/app.ini
|
|
Restart=always
|
|
-Environment=USER=git HOME=/home/git
|
|
+Environment=USER=gogs HOME=/var/lib/gogs GOGS_CUSTOM=/var/lib/gogs/custom
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
--
|
|
2.15.0
|
|
|