mirror of
https://gitlab.com/packaging/gitea
synced 2025-01-05 08:53:23 +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' \
|
--gecos 'Gitea' \
|
||||||
--group \
|
--group \
|
||||||
--disabled-password \
|
--disabled-password \
|
||||||
--home /home/gitea \
|
--home /var/lib/gitea \
|
||||||
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/
|
WorkingDirectory=/var/lib/gitea/
|
||||||
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
|
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
|
||||||
Restart=always
|
Restart=always
|
||||||
EnvironmentFile=/etc/default/gitea
|
Environment="GITEA_WORK_DIR=/var/lib/gitea/"
|
||||||
|
EnvironmentFile=-/etc/default/gitea
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user