From 1aee261aae74881f65a1152f6fa57bc160adaa16 Mon Sep 17 00:00:00 2001
From: Lauris BH <lauris@nix.lv>
Date: Tue, 5 Jun 2018 05:02:04 +0300
Subject: More detailed documentation on how to set up from binary (#4121)

* More detailed documentation on how to set up from binary
Also change recommended file locations
---
 contrib/systemd/gitea.service | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'contrib/systemd/gitea.service')

diff --git a/contrib/systemd/gitea.service b/contrib/systemd/gitea.service
index 8c627e7b5c..387de14fa6 100644
--- a/contrib/systemd/gitea.service
+++ b/contrib/systemd/gitea.service
@@ -18,10 +18,10 @@ RestartSec=2s
 Type=simple
 User=git
 Group=git
-WorkingDirectory=/home/git/gitea
-ExecStart=/home/git/gitea/gitea web
+WorkingDirectory=/var/lib/gitea/
+ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
 Restart=always
-Environment=USER=git HOME=/home/git
+Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
 # If you want to bind Gitea to a port below 1024 uncomment
 # the two values below
 ###
-- 
cgit v1.2.3