Skip to content

Commit eab5837

Browse files
bagasmelafrikslunnytechknowlogick
authored
systemd service: Add commented PATH environment option for Git prefix (#13170)
On some setups, Git is installed to directory prefix other than default PATH (such as /opt/git/bin). For Gitea to know such Git installations, PATH environment must be specified on service file. Signed-off-by: Bagas Sanjaya <[email protected]> Co-authored-by: Lauris BH <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent a1952af commit eab5837

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contrib/systemd/gitea.service

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ WorkingDirectory=/var/lib/gitea/
5757
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
5858
Restart=always
5959
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
60+
# If you install Git to directory prefix other than default PATH (which happens
61+
# for example if you install other versions of Git side-to-side with
62+
# distribution version), uncomment below line and add that prefix to PATH
63+
# Don't forget to place git-lfs binary on the PATH below if you want to enable
64+
# Git LFS support
65+
#Environment=PATH=/path/to/git/bin:/bin:/sbin:/usr/bin:/usr/sbin
6066
# If you want to bind Gitea to a port below 1024, uncomment
6167
# the two values below, or use socket activation to pass Gitea its ports as above
6268
###

0 commit comments

Comments
 (0)