mirror of
https://gitlab.com/packaging/gitea
synced 2024-12-18 08:03:29 +00:00
systemd: add GITEA_WORK_DIR, relax EnvironmentFile loader
This commit is contained in:
parent
24b78505c6
commit
73f653729c
@ -6,5 +6,9 @@ getent passwd gitea >/dev/null 2>&1 || adduser \
|
||||
--gecos 'Gitea' \
|
||||
--group \
|
||||
--disabled-password \
|
||||
--home /home/gitea \
|
||||
--home /var/lib/gitea \
|
||||
gitea
|
||||
|
||||
if [ ! -d /etc/gitea ]; then
|
||||
install -d -o gitea -g gitea -m 770 /etc/gitea
|
||||
fi
|
||||
|
@ -10,7 +10,8 @@ Group=gitea
|
||||
WorkingDirectory=/var/lib/gitea/
|
||||
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
|
||||
Restart=always
|
||||
EnvironmentFile=/etc/default/gitea
|
||||
Environment="GITEA_WORK_DIR=/var/lib/gitea/"
|
||||
EnvironmentFile=-/etc/default/gitea
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user